# -*- coding: utf-8 -*-
import randomas r
def doit(n):
for iin range(n):
a =set()
while len(a) <5:
a.add(r.randint(1,35))
b =sorted(list(a))# -*- coding: utf-8 -*-
import random as r
def doit(n):
for i in range(n):
a = set()
while len(a) < 5:
a.add(r.randint(1,35))
b = sorted(list(a))
a = set()
while len(a) < 2:
a.add(r.randint(1,12))
c = sorted(list(a))
print(str(b)+'+'+str(c))
if __name__ == '__main__':
n = int(input("please input the number:"))
doit(n)
print('just buy it.')
a =set()
while len(a) <2:
a.add(r.randint(1,12))
c =sorted(list(a))
print(str(b)+'+'+str(c))
if __name__ =='__main__':
n =int(input("please input the number:"))
doit(n)
print('just buy it.')
------------------------------------------------------------------------------------------------------------------------
from randomimport randint
def doit():
a = []
while len(a) <5:
a.append(randint(1,35))
a =list(set(a))
print(sorted(a),end="+")
b = []
while len(b) <2:
b.append(randint(1,12))
b =list(set(b))
print(sorted(b))
if __name__ =='__main__':
t =input("the times you want:")
for iin range(int(t)):
print("the {} number is:".format(i+1))
doit()
网友评论