2025-05-29 Exception ExceptionPython Python Exception 异常处理异常匹配支持同一个类或者基类。 12345678910while True: try: x = int(input("Please enter a number")) break