Commit 97f63809 by sikang

update script

parent 1d5fff04
...@@ -20,8 +20,8 @@ def gen_rand_str(): ...@@ -20,8 +20,8 @@ def gen_rand_str():
def get_rand_code(): def get_rand_code():
code = ""
num = random.randint(0, 4); num = random.randint(0, 4);
code = "-------"+str(num)+"-------"
if num == 0: if num == 0:
code += ";\nString " + gen_rand_str() + "=\"" + gen_rand_str() + "\";\n" code += ";\nString " + gen_rand_str() + "=\"" + gen_rand_str() + "\";\n"
elif num == 1: elif num == 1:
......
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