- while 1:
- time = input('今天是周几:')
- if time == '周一' or time == '1':
- print('车牌尾数为1或6可开。')
- elif time == '周二' or time == '2':
- print('车牌尾数为2或7可开。')
- elif time == '周三' or time == '3':
- print('车牌尾数为3或8可开。')
- elif time == '周四' or time == '4':
- print('车牌尾数为4或9可开。')
- elif time == '周五' or time == '5':
- print('车牌尾数为5或0可开。')
- elif time == '周六' or time == '6':
- print('大货车和所有小型车可开。')
- elif time == '周日' or time == '7':
- print('所有车可开。')
- else:
- print('输入周几或阿拉伯数字')
复制代码
|