python获取当前时间戳和日期

import time,datetime
#时间戳
print(time.time())
#今天的日期
print(datetime.date.today())

猜你喜欢

转载自blog.csdn.net/weixin_38570967/article/details/81335809