Commit fc764b1d by BellCodeEditor

save project

parent 5ec53ebb
Showing with 42 additions and 0 deletions
with open(r"c:\Users\Administrator\Desktop\a.txt","r",encoding="utf-8") as a:
b=a.readlines()
for i in b:
i = i.split()
print(i)
\ No newline at end of file
s = ""
with open(r"C:\Users\Administrator\Desktop\a.txt","r",encoding="UTF-8") as a:
a=a.read()
for i in a:
if i =="w":
i=i.replace("c","6")
s += i
print(s)
# with open(r"C:\Users\Administrator\Desktop\a.txt","r",encoding="UTF-8") as a:
# for i in a:
# if i == "wdnmdngsb666nm6r\n":
# i = i.replace("d","c")
# s = s + i
# print(s)
with open(r"C:\Users\Administrator\Desktop\a.txt","w",encoding="UTF-8") as a:
a.write(s)
#with open(r"C:\Users\Administrator\Desktop\a.txt","r",encoding="UTF-8") as a:
# a = a.readlines()
# for i in a:
# print(i)
#a = "100,89,23,10,3,1,0"
#a=a.split(",")
#print(a)
#a = "wukong,11,11,11,11,1"
#a=a.split(",")
#print(a)
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