你可以使用Python的datetime模块来获取当前日期: import datetime now = datetime.datetime.now() print(“当前日期是:” + str(now.date()))