求助:pickle.load()无法载入全部pickle中的内容
本帖最后由 sungl123456 于 2022-5-8 17:28 编辑我想用以下语句解压一个pickle.
import pickle
m = open("pyl_output.txt","w+")
pickle_file = open("pyl_output.pickle","rb")
my_list = pickle.load(pickle_file)
m.write(str(my_list))
m.close()
pickle_file.close()
打开txt后如下:
A6 A7A8-1A8-2 A8 A9... I7 I8 I9 I10 I11 I12
Sample ...
1 0.601181.78064 0 02.997601.62842...10.852564.848402.303292.654981.733560.08996
2 0.594621.63383 0 03.048233.38542... 5.300316.218925.440675.166311.506990.49032
3 0.290541.58722 0 02.968462.70051... 7.321465.105713.093813.503911.549730.05186
4 0.491261.62644 0 02.305771.47264... 4.396315.027943.509982.269181.880490.00143
5 0.584391.51815 0 02.559242.27307... 7.920205.642593.094502.985101.296790.00000
... ... ... ... ... ... ...... ... ... ... ... ... ...
106 0.137440.40451 0 00.323081.52875... 1.344530.901670.290192.116102.234740.00000
107 0.199840.64972 0 00.833331.76897... 2.832041.691051.542482.649551.135530.00000
108 0.353500.85926 0 01.428261.28576... 8.029573.870802.607752.354490.873260.30150
109 0.174000.46200 0 00.650000.61600...13.332503.607251.572821.080000.356000.12200
110 0.333600.87840 0 01.456811.41420... 9.555044.144802.685992.460000.837000.26560
求助问题:pickle解压怎么能够将全部内容都拿出来呢
pyl_output.pickle我放到百度网盘里了,链接如下:
链接:https://pan.baidu.com/s/16hL-abzn39noEk-K3ID6yA
提取码:bvyp
pyl_output.pickle 这个文件发出来看看,不能传文件就上云盘链接。
或者告诉我们 pyl_output.pickle 这个文件的来源,怎么生成这个文件的。 suchocolate 发表于 2022-5-7 23:39
pyl_output.pickle 这个文件发出来看看,不能传文件就上云盘链接。
或者告诉我们 pyl_output.pickle 这个 ...
编辑帖子我发现不能上传文件,我放到百度网盘里了
页:
[1]