Commit 1affb1c8 by BellCodeEditor

save project

parent b78c90cb
Showing with 7 additions and 2 deletions
a='我有一个苹果'
a.replace("一","三")
print(a)
\ No newline at end of file
...@@ -6,4 +6,5 @@ with open (r'C:\Users\Administrator\Desktop\新建文件夹\t.txt','r',encoding= ...@@ -6,4 +6,5 @@ with open (r'C:\Users\Administrator\Desktop\新建文件夹\t.txt','r',encoding=
#print(a) #print(a)
for i in f: for i in f:
if '小强:10本' in i: if '小强:10本' in i:
print("y") i=i.replace('小强:10本','小强:11本')
\ No newline at end of file print("a")
\ 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