# coding:utf-8

# 0:星期天
# 1-6:代表得是星期一到星期六

index = int(input('请输入星期数字:'))      #或者index=int(index)
if  index == 0:
    print('星期天')
elif index == 1:
    print('星期一')
elif index == 2:
    print('星期二')
elif index == 3:
    print('星期三')
elif index == 4:
    print('星期四')
elif index == 5:
    print('星期五')
# elif index == 6:
#     print('星期六')
else:                #否则最终结果
    print('星期六')
    

 

相关文章:

  • 2022-02-11
  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2021-10-25
  • 2022-12-23
  • 2021-05-28
  • 2022-02-08
相关资源
相似解决方案