Commit 5a89b46f by BellCodeEditor

save project

parent 5eafd4ed
Showing with 12 additions and 5 deletions
yt=open(r'C:\Users\李莫莫\Desktop\fg.txt','r',encoding='GBK')
a=yt.read()
print(a)
yt.close()
\ No newline at end of file
new_ew=''
ew=''
with open(r'C:\Users\李莫莫\Desktop\fg.txt','r',encoding='GBK') as yt:
a=yt.read()
print(a)
for ew in a:
if '夫人的英国国会通过个人团体' in ew:
replace('夫人的英国国会通过个人团体','dfgfdgtyjfjytf')
new_ew += ew
with open(r'C:\Users\李莫莫\Desktop\fg.txt','w',encoding='GBK') as yt:
yt.write(new_ew)
\ 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