5 lines
113 B
Python
5 lines
113 B
Python
import datetime
|
|
|
|
# 获取当前日期和时间
|
|
now = datetime.datetime.now()
|
|
print("当前日期和时间:", now) |