fork download
  1. from datetime import datetime
  2. dt = datetime(2015, 4, 19, 12, 20) # 用指定日期时间创建datetime
  3. print(dt)
  4. # your code goes here
Success #stdin #stdout 0.07s 14144KB
stdin
Standard input is empty
stdout
2015-04-19 12:20:00