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

x = datetime.datetime(2020, 5, 17)

print(x)
运行结果: