Commit 9e2af344 by BellCodeEditor

save project

parent bb5b4cd3
Showing with 10 additions and 0 deletions
#file1=open(r'D:\NIMASILE\hhh.txt','w',encoding='utf-8')
#file1.write('小强')
#with open(r'D:\NIMASILE\hhh.txt','r',encoding='utf-8') as file1:
#a=file1.read()
#print(a)
for data in file1:
if '小强:10本' in data:
data=data.replace('小强:10本','小狗:10本')
print(data)
\ 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