存储数据
1.使用json.dump()存储列表,下图json,dump(num,fs),num表示要存储的数据,fs表示用于存储数据的对象

读取数据
1.使用json.load()

存储数据
1.使用json.dump()存储列表,下图json,dump(num,fs),num表示要存储的数据,fs表示用于存储数据的对象
读取数据
1.使用json.load()
本文标题:大家一起学python(6)
本文链接:https://www.haomeiwen.com/subject/lmukwctx.html
网友评论