2025-09-10:仓库迁移

This commit is contained in:
2025-09-10 16:12:45 +08:00
parent e0e49b0ac9
commit 3130e336a1
146 changed files with 4066 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
from functools import partial
if __name__ == '__main__':
RECORD_SIZE = 32
# partial函数主要起参数固定的作用接受一个函数和一组预设参数相当于给函数设置默认参数而不用修改函数
with open('5.文件与IO/4.bin_file.bin', 'rb') as f:
records = partial(f.read, RECORD_SIZE)
for record in records():
print(record, end='')