标签:etc for turn span div print 激活码 append import
# -*- coding: utf-8 -*- import random def getcode(): s=‘0123456789ZXCVBNMASDFGHJKLQWERTYUIOP‘ code=[] for i in range(0,4): reg=[] for j in range(0,4): reg.append(s[random.randint(0,len(s)-1)]) code.append(‘‘.join(reg)) return ‘-‘.join(code) for i in range(5): print(getcode())
标签:etc for turn span div print 激活码 append import
原文地址:http://www.cnblogs.com/ronyjay/p/6860723.html