zl程序教程

您现在的位置是:首页 >  后端

当前栏目

Python中string、json、bytes的相互转换

Python转换JSONJSON string 相互 bytes
2023-09-11 14:14:44 时间

json->string

str = json.dumps(jsonobj)

bytes->string

str = str(bytes,‘utf-8’)

string->json

json = json.loads(str)

python中matplotlib学习

1.matplotlib官网api:https://matplotlib.org/3.3.1/api/index.html
2.Pyplot tutorial:https://matplotlib.org/3.3.1/tutorials/introductory/pyplot.html
3.examples :https://matplotlib.org/3.3.1/gallery/index.html#pyplots-examples