Python 实现try重新执行 Pythontry重新执行:defnumberinput():#创建方法try:s=int(input('number:'))returnsprint(a)exceptExceptionasa:i=num 重新执行