📜  获取日期和时间 python 代码示例

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

代码示例5
from datetime import datetime
now = datetime.now()
print (now.strftime("%Y-%m-%d %H:%M:%S"))