( ゚∀。)有无肥哥用过Python的pickle模块啊…拿去存一个字典嵌套列表meta,基本上是
{str:[str,str,str]}的数据格式,字符串里会出现0-9a-Z以及一些常见的特殊字符( ,[]-)等
然后写入是
with open(filename,"wb") as file:
pickle.dump(meta,file)
读取是
with open(filename,"rb") as file:
pickle.load(file)
但是测试某些数据是正常运行的,但是有时候就会报TypeError:__new__()missing 2 required positional arguments:"tag" and "attributes"
现在看下来好像不是数据量的问题,还在试看看是什么数据报错了…
肥哥们有遇到过类似的情况吗?有无好的解决办法啊…
jp