except Exception as e:
print e
eg:
![](/i/l/?n=23&i=blog/2812597/202301/2812597-20230103201712872-63461243.png)
标签:Exception,Python,eg,错误信息,except,获取 From: https://www.cnblogs.com/zhenhua-hotpot/p/17023275.html
except Exception as e:
print e
eg:
标签:Exception,Python,eg,错误信息,except,获取 From: https://www.cnblogs.com/zhenhua-hotpot/p/17023275.html