ICode9

精准搜索请尝试: 精确搜索
  • 【Python】字符串字典 转 字典/json字符串2022-06-10 10:35:33

      if __name__ == '__main__': dictStr = "{'A':'aValue'}" print(type(dictStr), dictStr) # 字符串字典 转 字典 print(type(eval(dictStr)), eval(dictStr)) # 字符串字典 转 字符串json print(type(json.dumps(eval(dict

  • 【Python】字符串字典 转 字典/json字符串2022-06-10 10:35:31

      if __name__ == '__main__': dictStr = "{'A':'aValue'}" print(type(dictStr), dictStr) # 字符串字典 转 字典 print(type(eval(dictStr)), eval(dictStr)) # 字符串字典 转 字符串json print(type(json.dumps(eval(dict

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有