包头48bit 数据98464 。。。如此循环:

piece_size = 48
piece_size1 = 98464 with open("C:\\Users\\Administrator\\Desktop\\bins\\234.bin", "rb") as in_file, open("C:\\Users\\Administrator\\Desktop\\bins\\234_deal.bin", "ab+") as out_file:
while True:
piece = in_file.read(piece_size)
piece1= in_file.read(piece_size1)
if not piece:
break
if not piece1:
break
out_file.write(piece1)
in_file.close()
out_file.close() # f = open("C:\\Users\\Administrator\\Desktop\\bins\\OUT4.TXT", 'rb')
# while True:
# block = f.read(1024)
# print(block)
# if not block:
# break
# f.close()

最新文章

  1. c#语言规范
  2. SQLServer数据库备份
  3. android:id="@+id/button1" 与 android:id="@id/button1" 区别 @string
  4. Android照相机应用
  5. [转]Oracle学习记录 九 Prc C学习
  6. sql语句having子句用法,很多时候你曾忘掉
  7. android—资源文件(res)的引用
  8. windows server2012 图形加速,玩游戏不掉帧
  9. 1.3.2. App Icon 和 Launch Image(Core Data 应用程序实践指南)
  10. mysql常用基础操作语法(九)~~外连接查询【命令行模式】
  11. 补习系列(3)-springboot中的几种scope
  12. DeepLearning.ai-Week1-Convolution+model+-+Application
  13. Linux之awk、变量、运算符、if多分支
  14. Groovy与Java集成常见的坑
  15. HashMap几个需要注意的知识点
  16. Android APP通用型拒绝服务、漏洞分析报告
  17. Deployment failure on Tomcat 6.x. Could not copy all resources to D:\...\webapps\eptInfo. If a file is locked, you can wait until the lock times out to redeploy, or stop the server and redeploy, or ma
  18. [转载]浅析为什么char类型的范围是 —128~+127
  19. C#语法文本字面量
  20. 关于Mysql查询varchar类型错误问题

热门文章

  1. Apache ant 配置
  2. luogu3193 [HNOI2008]GT考试
  3. 学习boundingRectWithSize:options:attributes:context:计算文本尺寸
  4. 大数据学习——scala类相关操作
  5. WebService的简介, 原理, 使用,流程图
  6. Nginx+PHPSTORM+Xdebug 配置
  7. read(byte[] b)与readFully(byte[] b)
  8. xampp下bugfree部署
  9. 【Luogu】P2473奖励关(期望DP)
  10. 关于 __int128