📜  python 设置特定的日期时间 - Python 代码示例

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

代码示例1
from datetime import datetime

custom_date_time = datetime(2021, 7, 23, 17, 30, 29, 431717)
print(custom_date_time)

# Output:
# 2021-07-23 17:30:29.431717