Commit 68f64727 by BellCodeEditor

save project

parent 36c20eb2
Showing with 11 additions and 2 deletions
......@@ -3,6 +3,11 @@ with open (r'C:\Users\Administrator\Documents\sstt.txt','w',encoding='utf-8') as
with open (r'C:\Users\Administrator\Documents\sstt.txt','r',encoding='utf-8') as f:
# a=f.read()
# print(a)
new=''
for i in f:
if '小强:10本' in i:
print("y")
\ No newline at end of file
a.replace('小兰:12本','小兰:19本')
print("i")
new=new+1
print(new)
\ No newline at end of file
a='我有一个苹果'
a.replace('一','三')
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