datetime应用
from datetime import datetime, timedelta
the_time = datetime.now()
print(the_time)
# 时间戳
print(the_time.timestamp())
# 现在是哪年 哪月 哪日
print(the_time.year, the_time.month, the_time.day)
print(the_time + timedelta(days=10))
print(the_time.strftime("%Y-%m-%d %H:%M:%S"))
浙公网安备 33010602011771号