摘要: 今晚被python 坑了好久 数据存入列表后 出来会格式化成单引号 a = ["a","b"] print a ['a','b'] 只要转换成str类型替换就好 str(a).replace('\'','\"') 阅读全文