Python 异常参数 Python try finally 示例 Python 类访问属性 Python 异常参数 #!/usr/bin/python # Define a function here. def temp_convert(var): try: return int(var) except ValueError, Argument: print "The argument does not contain numbers\n", Argument # Call above function here. temp_convert("xyz"); Python try finally 示例 Python 类访问属性