摘要: Python学习笔记--函数 阅读全文
posted @ 2022-12-13 20:44 77gg 阅读(73) 评论(0) 推荐(0)
摘要: 疑问: 如何把类似json的字符串转换为python的字典类型? 解答: 代码 word = '{"name":"123"}' import json try: res = json.loads(word) except json.decoder.JSONDecodeError as e: prin 阅读全文
posted @ 2022-12-13 09:36 77gg 阅读(21) 评论(0) 推荐(0)