import datetime weekday_transfer = { 0: '周一', 1: '周二', 2: '周三', 3: '周四', 4: '周五', 5: '周六', 6: '周日' } week = datetime.datetime.now().weekday() print(weekday_transfer[week])
import datetime weekday_transfer = { 0: '周一', 1: '周二', 2: '周三', 3: '周四', 4: '周五', 5: '周六', 6: '周日' } week = datetime.datetime.now().weekday() print(weekday_transfer[week])