import datetime # 获取当前日期和时间 now = datetime.datetime.now() print("当前日期和时间:", now)