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,12 @@
import io
if __name__ == "__main__":
file = "5.文件与IO/17.try.txt"
# 上一章我们知道了文件打开后都长什么样子想要往文件里写字节数据怎么办直接往buffer里怼就完了、
# 这样可以绕过文件的编码层
f = open(file, "w")
f.buffer.write(b"write")
f.close()