例如: 输入报名序号“2022150001”,输出“普通综合类”
while True:
ticket= ①
num=0
for i in ticket:
if i>="0" and i<="9":
num=num+1
If len(ticket)!=10:
print("输入长度不符合要求")
elif ②
print("输入存在非数字字符")
else:
break
dic={"13":"普通艺术类","14":"普通体育类","15":"普通综合类","23":"单项艺术类","24":"单项体育类","25":"单项综合类"}
s=dic[ticket[4:6]]
print("该考生的考试科类为:",s)
①②