📜  导入日期时间 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:03.996000             🧑  作者: Mango

代码示例4
import datetime
now = datetime.datetime.now()
print(now.year, now.month, now.day, now.hour, now.minute, now.second)