#coding=gbk ''' 输入字母,打印出要输入的星期几: 首字母无效,则继续输入,最多2次即可判断结果:否则退出. ''' week_list=['monday','tuesday','wednesday','thursday','friday','saturday','sunday'] ss='' while 1: s=input('请按顺序输入星期的字母:') result=[] ss+=s.strip() for i in week_list: if ss==i[:len(ss)]…