json文件单引号变双引号

def Single_to_double_quote(path):
fileObject = open(path, 'r', encoding='utf-8').read()
dels = fileObject.replace('\'', '\"')
open(path, 'w', encoding='utf-8').write(dels)
  return path
 
posted @ 2022-07-20 11:00  布都御魂  阅读(336)  评论(0编辑  收藏  举报