python 为什么try中有eval不抛异常

2025-05-07 23:29:32
推荐回答(1个)
回答1:

def ThorwErr(): raise Exception("抛出一个异常")
# Exception: 抛出一个异常
ThorwErr()