weixin_39682477的博客while 循环条件:# 循环体(重复执行的语句)# i = 1 #循环变量# while i 3:# pass# while 1:# pass# exit() 系统函数,结束当前程序# print(11)# while 1:# exit()# print(2222)# break 终止当前这一重循环# while 1...
weixin_39771351的博客正如SpoonMeiser已经提到的,您的代码有很多问题:The only division takes place before entering the try block, so your except ZeroDivisionError will never get triggered.except user_input_1 != int ...