摘要: import random def red_packet(money, num): money = money * 100 ret = random.sample(range(1, money), num - 1) ret.append(0) ret.append(money) ret.sort() 阅读全文
posted @ 2020-01-06 15:30 JaryTom 阅读(794) 评论(0) 推荐(0) 编辑
摘要: import string import random import timeit from timeit import Timer def random_string(length=16): rule = string.ascii_letters + string.digits char_list 阅读全文
posted @ 2020-01-06 11:10 JaryTom 阅读(193) 评论(0) 推荐(0) 编辑