📜  获取小时 python 代码示例

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

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