Python obj与JSON相互转换
摘要:1 # _*_ coding:utf-8 _*_ 2 3 def showJson(self, pipefd): 4 overdict = args.__dict__ 5 # 此时就可以用json.dumps序列化了 6 result = json.dumps(overdict, ensure_as
阅读全文
posted @ 2020-11-13 10:48
posted @ 2020-11-13 10:48
posted @ 2020-11-12 16:49