Commit d5d57f07 by BellCodeEditor

save project

parent d9813142
Showing with 13 additions and 7 deletions
q=''
with open(r"C:\Users\dell\Desktop\桌面.txt",'r',encoding='utf-8') as p:
a=p.read()
for i in a:
if '哈哈哈哈哈哈哈哈哈' in i:
print(1)
else:
print(0)
\ No newline at end of file
for i in p:
if '小二逼:0' in i:
i=i.replace('小二逼:0','小二逼:20')
if '小二货:0' in i:
i=i.replace('小二货:0','小二货:20')
q+=i
with open(r"C:\Users\dell\Desktop\桌面.txt",'w',encoding='utf-8') as p:
p.write(q)
with open(r"C:\Users\dell\Desktop\桌面.txt",'w',encoding='utf-8') as p:
w=p.read()
print(w)
\ 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