python3 try except与python2的区别

python2的时候

try:
    raise
except Exception, e:
    print (e)
    return false

python3的时候

try:
    raise
except Exception as e:
    print (e)
    return false

  

猜你喜欢

转载自www.cnblogs.com/gentlemanhai/p/11854193.html