📜  tuto日期和时间python代码示例

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

代码示例1
# import datetime class from datetime module
from datetime import datetime

# get current date
datetime_object = datetime.now()
print(datetime_object)
print('Type :- ',type(datetime_object))