类似SETUP_EXCEPT(arg=12, lineno=233)的错误解决方法之一

错误代码:

@jit()
def savepole(img_pole):
    try:
        print ("ok")   
    except:
        print ("error")

错误提示:

 AssertionError: Failed at object (analyzing bytecode)
SETUP_EXCEPT(arg=12, lineno=233)

正确代码:

def savepole(img_pole):
    try:
        print ("ok")   
    except:
        print ("error")

错误原因:@jit()不支持try expect结构....

猜你喜欢

转载自blog.csdn.net/gbz3300255/article/details/108576735