转下坛内SPX7.0注册码的规则
SPX7.0注册码
每一位不能为0;
第一位必须为偶数;
第二位必须为偶数;
第三位必须为奇数;
第一位+第二位+第三位%10=第四位;
注册码与用户名,公司名无关;
Python 尝试
[Python] 纯文本查看 复制代码 from random import randint
class SPX7Keygen:
def __init__(self):
a = randint(1, 4)*2
b = randint(1, 4)*2
c = randint(1, 4)*2
if c%2==0:
c=c-1
d = (a + b + c) % 10
print("SPX7.0的注册码:",str(a)+str(b)+str(c)+str(d),sep='\n', end='\n')
SPX7Keygen()
|