Commit fc7ba7b3 by BellCodeEditor

save project

parent 1a617c26
Showing with 30 additions and 0 deletions
...@@ -19,9 +19,38 @@ file1.writer("teiosrtuir:14本\n") ...@@ -19,9 +19,38 @@ file1.writer("teiosrtuir:14本\n")
with open(r"c:\users\CM\D") with open(r"c:\users\CM\D")
for data in file1: for data in file1:
if "djsfhjdsh:10本"in data if "djsfhjdsh:10本"in data
print("yrtyrty") print("yrtyrty")
if "ifjgidfhdjs:12本"in data if "ifjgidfhdjs:12本"in data
print("rjfirifei") print("rjfirifei")
with open(r"c:\users\CM\D")
for data in file1:
if "djsfhjdsh:10本"in data
data=data.replace('fgrtretrgf')
if "ifjgidfhdjs:12本"in data
data=data.replace('gtfyfewgryt')
new_data+=data
with open(r"c:\users\CM\D")
file1.writer(new_data)
with open(r"c:\users\CM\D")
file1.read()
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