收起
while True: i=input() if i.isdigit() and int(i)>=0: print('谢谢') break else: print('这不是正整数!')
报告相同问题?