Commit 5ef3a605 by BellCodeEditor

save project

parent d3f7e311
Showing with 17 additions and 0 deletions
...@@ -15,3 +15,20 @@ while open(r'C:\Users\CM\Desktop\book.txt','r',encoding='utf-8') ...@@ -15,3 +15,20 @@ while open(r'C:\Users\CM\Desktop\book.txt','r',encoding='utf-8')
print('xqsjzwjz') print('xqsjzwjz')
if'xl:12'in data: if'xl:12'in data:
print('xlsjzwjz') print('xlsjzwjz')
new_data=''
while open(r'C:\Users\CM\Desktop\book.txt','a',encoding='utf-8')
if'xq:12'in data:
data=data.replace('xq:10','xq:11')
if 'xl:12'in data
data=data.replace('xl:12','xl:14')
new_data +=data
while open(r'C:\Users\CM\Desktop\book.txt','a',encoding='utf-8')
file1.write(new_data)
while open(r'C:\Users\CM\Desktop\book.txt','a',encoding='utf-8')
a=file1.read()
print(a)
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