摘要: Python学习笔记--函数 阅读全文
posted @ 2022-12-13 20:44 o蹲蹲o 阅读(29) 评论(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 o蹲蹲o 阅读(12) 评论(0) 推荐(0) 编辑