diff --git a/diy.py b/diy.py index a1df5c9..e6704dd 100644 --- a/diy.py +++ b/diy.py @@ -5,5 +5,8 @@ #a.write('李文:9本\n') #a.write('张伟:16本\n') #a.close() -with open(r"C:\Users\87078\Desktop\FUCK.txt","a",encoding='utf-8')as FBI: - FBI.write('小红:14本') \ No newline at end of file +#with open(r"C:\Users\87078\Desktop\FUCK.txt","a",encoding='utf-8')as FBI: + #FBI.write('小红:14本') +with open(r"C:\Users\87078\Desktop\FUCK.txt","r",encoding='utf-8')as FBI: + a=FBI.read() + print(a) \ No newline at end of file