diff --git a/读取文件2.py b/读取文件2.py deleted file mode 100644 index 3fd5051..0000000 --- a/读取文件2.py +++ /dev/null @@ -1,6 +0,0 @@ -from pathlib import Path # pathlib is recommended - -#repofile = Path('../repo_file.txt') # 读取上一级目录文件 -repofile = Path('./repo_file.txt') # 读取上一级目录文件 -with repofile.open() as f: - print(f.readline()) \ No newline at end of file