python中string、json、bytes的转换
时间:2019-07-18 10:11:03
收藏:0
阅读:426
json->string
str = json.dumps(jsonobj)
bytes->string
str = str(bytes,‘utf-8’)
string->json
json = json.loads(str)
参考:
https://www.cnblogs.com/xiandedanteng/p/9009964.html
https://www.cnblogs.com/z3286586/p/11038864.html
https://www.cnblogs.com/fqfanqi/p/7900758.html
原文:https://www.cnblogs.com/sea-stream/p/11204602.html
评论(0)