20200720专题

(20200720已解决)UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0x80 in position 7: invalid start b

问题描述 如题 解决方案 因为pickle文件写入是binary格式,因此读取的时候也需要用binary格式。 return = open("picklefile", 'rb') 出现另外一个问题: _pickle.UnpicklingError: A load persistent id instruction was encountered,but no persistent_load

(20200720已完成)在Windows上WSL中安装汇编环境NASM

源码安装 参见tutorialspoint,总是失败 apt安装 其实很简单,Ubuntu下sudo apt install nasm Example 源码filename.asm: section .datamsg db "Hello World", 10msglen equ $-msgsection .textglobal _start_start:mov rax,1mov rd

(20200720已解决)_pickle.UnpicklingError: A load persistent id instruction was encountered,

but no persistent_load function was specified. 问题描述 如题,提取pickle数据 解决方案 直接解释是因为生成pickle文件的过程中使用了persistent_load,但是读取过程中没有提供。 本例中的具体原因是,读取的pickle文件并非pickle格式,只是用pickle这个词表示这是一个规范压缩的数据文件,改用合适的read_*()