源代码
import datetime x = datetime.datetime.now() print(x)
运行结果