Python3_Except语法的不同之处 在进行异常处理时,as 是把异常对象赋值到 as 后的变量中 在python2中是这样写的: except IOError , (errno, strerror): 但是python3中,已经不允许这样写了,要写成 except IOError as (errno, strerror):