python3 try difference except with the python2

When python2

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

When python3

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

  

Guess you like

Origin www.cnblogs.com/gentlemanhai/p/11854193.html