pyqt-todolist/test/TimeTest.py
2022-04-07 21:11:37 +08:00

8 lines
326 B
Python

import datetime
import time
weekday = ["星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日"]
weekday_index = datetime.datetime.now().weekday()
month = datetime.datetime.now().month
day = datetime.datetime.now().day
print(str(month) + '' + str(day) + '日,' + weekday[weekday_index])