9 lines
326 B
Python
9 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])
|