📜  日期时间库 - 任何代码示例

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

代码示例2
import datetime as d
time = d.datetime.now()
time = time.strftime("%Y-%m-%d  %H:%M:%S")
           #year-#month-#date  #hour:#minure:#second
print(time)