huizih.py
作者:互联网
snum=input()
if snum[:-1]=='':
print("输入错误")
elif snum[:-1] !='':
if int(snum[:-1]) <= 17 and int(snum[:-1])>=1:
if snum[-1] in ['A','a','f','F']:
print("窗口")
elif snum[-1] in ['C','c','d','D']:
print("过道")
elif snum[-1] in ['e','E']:
print("中间")
else:
print("输入错误")
标签:elif,huizih,错误,py,print,snum,输入 来源: https://www.cnblogs.com/BanTang-o8o/p/15450275.html