生成随机码

来源:互联网 发布:澳洲淘宝网 编辑:程序博客网 时间:2024/06/02 07:13
 +import random, string++f = open('Promo_code.txt','wb')+for iin range(200):+ chars = string.letters + string.digits+ s = [random.choice(chars) for i in range(10)]+ f.write(''.join(s)+ '\n')+f.close()
0 0
原创粉丝点击