Commit d993e80e by sikang

update

parent fb57de62
...@@ -11,11 +11,10 @@ import glob, os ...@@ -11,11 +11,10 @@ import glob, os
# return rand_str + str(random.randint(0, 1000000)) # return rand_str + str(random.randint(0, 1000000))
def decrypt(path): def decrypt(path):
# print("processing content: %s..." % path) with open(path, "r") as f:
with open(path, "r", encoding="utf-8") as f:
lines = f.readlines() lines = f.readlines()
with open(path, "w", encoding="utf-8") as f_w: with open(path, "w") as f_w:
for line in lines: for line in lines:
if "<string" in line and "</string>" in line: if "<string" in line and "</string>" in line:
line = line.replace("</string>", "") line = line.replace("</string>", "")
......
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 to comment