Commit 676b5525 by BellCodeEditor

auto save

parent b40d8085
Showing with 10 additions and 2 deletions
...@@ -6,4 +6,12 @@ ij=open(r'C:\Users\29018\Desktop\uxcucya.txt','a',encoding='utf-8') ...@@ -6,4 +6,12 @@ ij=open(r'C:\Users\29018\Desktop\uxcucya.txt','a',encoding='utf-8')
ij.write('小张:122本') ij.write('小张:122本')
ij.close() ij.close()
with open(r'C:\Users\29018\Desktop\uxcucya.txt','w',encoding='utf-8')as file: with open(r'C:\Users\29018\Desktop\uxcucya.txt','r',encoding='utf-8')as file:
\ No newline at end of file s=file.read()
print(s)
with open(r'C:\Users\29018\Desktop\uxcucya.txt','r',encoding='utf-8')as file:
for i in file:
if "小王" in i
else:
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment