Python 练习实例16

来源:互联网 发布:mac os app store更新 编辑:程序博客网 时间:2024/05/24 05:59

题目:输出指定格式的日期。

程序源代码:

from datetime import *import time#返回当前本地时间print("today:"+str(date.today()))print("today:"+str(date.fromtimestamp(time.time())))
原创粉丝点击