Commit 40e3d709 by BellCodeEditor

auto save

parent 1de1a658
Showing with 3105 additions and 3 deletions
...@@ -9,6 +9,3109 @@ ...@@ -9,6 +9,3109 @@
# file1.write('dsfngshrtdstrjshfsgfjfdbsfdgdxfhsdfgffsdgshkagu\n') # file1.write('dsfngshrtdstrjshfsgfjfdbsfdgdxfhsdfgffsdgshkagu\n')
# file1.write('dsfhkahgdsfmgfdsjkhgrjhhjihgzduibgfjkjrnmrhbyesrbefm,dnhesuewrhuj\n') # file1.write('dsfhkahgdsfmgfdsjkhgrjhhjihgzduibgfjkjrnmrhbyesrbefm,dnhesuewrhuj\n')
# with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='utf-8') as file1:
# a = file1.read()
# print(a)
data=" "
with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='utf-8') as file1: with open(r'C:\Users\Administrator\Desktop\test.txt','r',encoding='utf-8') as file1:
a = file1.read() for data in file1:
print(a) if "李文:10本" in data:
\ No newline at end of file data=data.replace("李文:10本","去:4")
new_data=" "
new_data += datd
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