Commit 1d36922a by BellCodeEditor

save project

parent e23449bd
Showing with 4 additions and 2 deletions
...@@ -9,4 +9,6 @@ for i in a: ...@@ -9,4 +9,6 @@ for i in a:
print('小强在文件中') print('小强在文件中')
i=i.replace('小强:10本','小强:11本') i=i.replace('小强:10本','小强:11本')
new_i+=i new_i+=i
print(new_i) print(new_i)
\ No newline at end of file a=open('C:\\Users\\Windows 7\\Desktop\\test.txt','w',encoding='utf-8')
a.write(new_i)
\ 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