大概的意思就是,报错了,但是会在报错的地方继续运行下去,我之前会一些异常的捕获,但不是很懂这个回溯怎么设置
try:
except Exception :
print(Exception)
大概的意思就是,报错了,但是会在报错的地方继续运行下去,我之前会一些异常的捕获,但不是很懂这个回溯怎么设置
try:
except Exception :
print(Exception)
try:
#你的工作代码
except Exception as e :
print('出错了', repr(e))