0
点赞
收藏
分享

微信扫一扫

python 将bytes 转化为字典

宁静的猫 2023-01-20 阅读 115


c=b'{"player_id":1222,"message":"jgh kk"}'
c1=str(c,'utf-8')
print(c1)
c2=eval(c1)
print(c2)

{"player_id":1222,"message":"jgh kk"}
{'player_id': 1222, 'message': 'jgh kk'}

json->string

st= json.dumps(c2)
print(st)

string->json

json = json.loads(st)

​​参考​​ 联盟建了徽信群 没在群里的加下徽信:819928514 拉你进群,晚上群里有活动通知大家,抢资源,争地盘,谢谢配合

​​http://192.168.1.42:7800/gluo/advtise_filter/edit​​

Load game packages to your account for half price
line id vomark

Load game packages to your account
1 pack price $100=$60.
2 pack price $200=$110.
3 pack price $300=$150.
line id vomark


举报

相关推荐

0 条评论