def test():
a=''
try:
raise Exception('111')
except Exception as a:
pass
print(a)
test()
这段代码 在Python3下执行异常, python2 下 执行正常。
最新推荐文章于 2022-09-24 08:43:28 发布
def test():
a=''
try:
raise Exception('111')
except Exception as a:
pass
print(a)
test()