Python3 单个异常 Python3 Try Finally 实例 Python3 抛出异常 Python3 单个异常 #!/usr/bin/python3 # Define a function here. def temp_convert(var): try: return int(var) except ValueError as Argument: print ("The argument does not contain numbers\n", Argument) # Call above function here. temp_convert("xyz") Python3 Try Finally 实例 Python3 抛出异常