From eb15de689c0fb8b665bf88bd3b8fb46c1e1ed4c5 Mon Sep 17 00:00:00 2001 From: nbwzlyd <420907013@qq.com> Date: Sun, 11 Sep 2022 09:59:10 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20'=E8=AF=BB=E5=8F=96?= =?UTF-8?q?=E6=96=87=E4=BB=B62.py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 读取文件2.py | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 读取文件2.py 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