eval升级版literal

tech2026-03-29  2

literal_eval

ast.literal会判断需要计算的内容计算后是不是合法的python类型,如果是则进行运算,否则就不进行运算。

最新回复(0)