删除 '读取文件2.py'

This commit is contained in:
nbwzlyd 2022-09-11 09:59:10 +00:00
parent f40c3e11aa
commit eb15de689c
1 changed files with 0 additions and 6 deletions

View File

@ -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())