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