Commit 774802a5 by sikang

test

parent a1d493c6
...@@ -217,7 +217,8 @@ class Function: ...@@ -217,7 +217,8 @@ class Function:
desc = "" desc = ""
with open("/Users/connor/StudioProjects/WorkSpace/app_desc.txt", "r") as f: with open("/Users/connor/StudioProjects/WorkSpace/app_desc.txt", "r") as f:
file_content = f.read().replace("\n", "--line--") file_content = f.read().replace("\n", "--line--")
index = random.randint(1, 41) index = random.randint(1, 42)
print("模板%d"%index)
info = re.compile( info = re.compile(
r''+"@Example %d--line--(.*)@End %d" % (index, index)) r''+"@Example %d--line--(.*)@End %d" % (index, index))
desc = info.search(file_content).group() desc = info.search(file_content).group()
......
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