代码示例:(标识:python_datetime_1)
python_datetime_1.py
import datetime

x = datetime.datetime.now()
print(x)
运行结果: