SYSTEM0
发表于 2020-7-27 08:52:19
朕想知道
SYSTEM0
发表于 2020-7-27 08:53:07
本帖最后由 SYSTEM0 于 2020-7-27 08:56 编辑
import random
def main():
shw = True
a =
l =
drw = 0
p = []
selsp = 0
delsp = 0
for i in range(6):
a = random.randint(1, 33)
while len(a) != len(set(a)):
for i in range(6):
a = random.randint(1, 33)
for z in range(6):
a = str(a)
delsp = random.randint(1, 16)
while shw:
serv = int(input('输入服务:1-自选,2-机选,3-退出:'))
if serv == 1:
for i in range(1, 7):
l = input('请输入第%d个红号:' % i)
selsp = input('请输入蓝号:')
drw = 12 - len(set(a + l))
la = (' '.join(a)) + '+' + str(delsp)
print('开奖号码是:%s' % la)
if drw and drw != 6:
if delsp == selsp:
print('你中了%d + 1个号码!' % drw)
else:
print('你中了%d个号码!' % drw)
elif drw == 6 and selsp == delsp:
print('恭喜你,全都中了!')
else:
print('很可惜,你没有中!')
elif serv == 2:
p = []
for i in range(1, 7):
s = [str(random.randint(1, 33)), str(random.randint(1, 33)), str(random.randint(1, 33)), str(random.randint(1, 33))\
, str(random.randint(1, 33)), str(random.randint(1, 33))]
while len(s) != len(set(s)):
s = [str(random.randint(1, 33)), str(random.randint(1, 33)), str(random.randint(1, 33)), str(random.randint(1, 33))\
, str(random.randint(1, 33)), str(random.randint(1, 33))]
p.append(s)
r = (' '.join(s)) + '+' + str(random.randint(1, 16))
print('%d - %s' % (i, r))
lu = int(input('选择第几组?'))
c = p
drw = 12 - len(set(a + c))
for s in range(6):
a = str(a)
la = (' '.join(a)) + '+' + str(delsp)
print('开奖号码是:%s' % la)
if drw and drw != 6:
if delsp == selsp:
print('你中了%d + 1个号码!' % drw)
else:
print('你中了%d个号码!' % drw)
elif drw == 6 and selsp == delsp:
print('恭喜你,全都中了!')
else:
print('很可惜,你没有中!')
elif serv == 3:
shw = False
else:
print('输入错误')
for i in range(6):
a = random.randint(1, 33)
while len(a) != len(set(a)):
for i in range(6):
a = random.randint(1, 33)
delsp = random.randint(1, 16)
s = input('请输入账号:')
v = input('请输入密码:')
if s == 'bilibili' and v == '28372':
print('\n\n\n\n\n\n\n\n\n\n\n\n\n\n')
main()
else:
print('错误')
yourmate
发表于 2020-7-27 08:58:17
你这个是选号的程序么?学习一下
nahongyan1997
发表于 2020-7-27 09:07:00
看看
曲速飞跃
发表于 2020-7-27 16:52:34
看看
greatkinglei
发表于 2020-7-27 19:06:15
怎么样哦
lixinyi~
发表于 2020-7-27 19:23:14
1
ailiyy
发表于 2020-7-27 19:32:08
{:5_102:}
n616879781
发表于 2020-7-27 20:49:35
什么小东西
ccc电池
发表于 2020-7-28 17:00:03
1
z202019
发表于 2020-7-30 12:03:05
学习学习
zhiweng07
发表于 2020-8-13 07:36:22
特别好玩
小小老虎0527
发表于 2020-8-13 07:42:19
赞
ll1218
发表于 2020-8-13 10:47:43
4646
xiangya
发表于 2020-8-13 11:58:26
1
378987768
发表于 2020-8-13 22:28:47
取经
xiaolongren969
发表于 2020-8-13 22:31:33
1
nanrenne
发表于 2020-8-13 22:35:33
测试
freeck2013
发表于 2020-8-14 15:12:43
中了两千万哈哈 给你花花
默然回首
发表于 2020-8-14 16:52:46
学习下思路
页:
1
2
3
4
5
6
[7]
8
9
10
11