Traceback most recent call last File demo2py line 20 in module arr_list = astliteral_evalstr_arr File CUsersThinkAppDataLocalProgramsPythonPython36libastpy line 85 in literal_eval return _conv
This error occurs when the ast.literal_eval() function encounters an Ellipsis object in the input string or node. The literal_eval() function is used to safely evaluate strings containing Python literals, such as lists, dictionaries, tuples, etc.
In this specific case, it seems that the input string or node contains an Ellipsis object, which is not a valid Python literal and cannot be evaluated by literal_eval().
To fix this error, you need to ensure that the input string or node does not contain any Ellipsis objects. You can do this by checking the input data and removing any occurrences of Ellipsis before passing it to literal_eval()
原文地址: https://www.cveoy.top/t/topic/iLwf 著作权归作者所有。请勿转载和采集!