安全问答

安全问答是一个知识全球问答,包含丰富的问答知识

首页 常规 游戏 娱乐 科技 程序员

使用pickle模块将上面中写入的二进制数据读出import picklefi = opendidadat rb# 读出文件的数据个数try with opendidadat rb as fi while True printpickleloadfiexcept EOFError ficlose

  • 日期: 2028-12-13
  • 标签: 科技

读出文件的数据

with open('dida.dat', 'rb') as fi: data = pickle.load(fi) print(data)

使用pickle模块将上面中写入的二进制数据读出import picklefi = opendidadat rb# 读出文件的数据个数try with opendidadat rb as fi while True printpickleloadfiexcept EOFError ficlose

原文地址: http://www.cveoy.top/t/topic/Z4m 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录

  • 上一篇: what if spain sent 1000 soldiers to assist confederacy in 1865
  • 下一篇: what is panda

© 2019 • 2025 - 安全问答 站长邮箱:wxgpt@qq.com    ICP备案/许可证号:豫ICP备2024104334号-2