Commit 487c68a9 by sikang

update

parent 578cb241
...@@ -70,8 +70,8 @@ class ImageGarble: ...@@ -70,8 +70,8 @@ class ImageGarble:
count = 0 count = 0
print("generating image ...") print("generating image ...")
if len(config['image_path']) > 0 : if len(config['image_path']) > 0 :
count = range(100,200) count = random.randint(100,200)
for i in count: for i in range(0,count):
self.__create_img("%s/%s/%s.png"%(config['root'],config['image_path'],self.__gen_rand_str())) self.__create_img("%s/%s/%s.png"%(config['root'],config['image_path'],self.__gen_rand_str()))
else: else:
for main_dir in config["lib_main"]: for main_dir in config["lib_main"]:
......
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