>>> import pandas as pd
>>> from datetime import timedelta
引入时间戳形式的字符串
>>> t0 = '2021-01-01 09:00:00'
将其转换为时间戳类型
>>> t0 = pd.to_datetime(t0)
>>> t0
Timestamp('2021-01-01 09:00:00')
使用timedelta函数进行时间戳的运算
>>> t0 + timedelta(days=1)
Timestamp('2021-01-02 09:00:00')
>>> t0 + timedelta(hours=10)
Timestamp('2021-01-01 19:00:00')