📜  在 python 代码示例中打印当前日期和时间

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

代码示例6
from datetime import datetime

currentTimeDate = datetime.now()
print(currentTimeDate)

Output: 2021-12-14 16:25:25.425925