📜  python获取日月年 - Python代码示例

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

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