Commit 53b6b284 by BellCodeEditor

save project

parent 185f75d2
Showing with 3 additions and 3 deletions
......@@ -5,8 +5,8 @@ with open(r'C:\Users\CHINGHUDOF\Desktop\text.txt','r',encoding='utf-8')as file1:
#file1.write('光头强:12\n李明:15')
for data in file1:
if '光头强:12本'in data:
print('强哥在这')
if '小兰:12本'in data:
print('小兰在这')
data=data.replace('光头强:12','光头强:10')
if '小兰:12本'in data:
data=data.replace('小兰:12本','小兰:10本')
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