Python 字符串或JSON字符串转字典dict、列表list. 有3种方法. 1、使用ast模块 >>> import ast >>> s = '["test",1]' >>> ast.literal_eval(s) ['test' ...
確定! 回上一頁