这是我的循环:
sure = input('Are you sure that you wish to reset the program?(y/n)')
while sure != 'y' or sure != 'n':
sure = input('Please awnser y or n, Are you sure that you wish to reset the program?(y/n)')
Run Code Online (Sandbox Code Playgroud)
循环持续进行,即使循环y或者n被输入.