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,10 @@
import os
if __name__ == "__main__":
# open函数除了可以对文件对象进行操作以外也可以打开一些由系统创建的文件描述符
fd = os.open("5.文件与IO/17.try.txt", os.O_WRONLY | os.O_CREAT)
# 当文件被关闭时,这些由系统创建的IO管道也会随之关闭
f = open(fd, 'wt')
f.write("ca")
f.close()