2019-03-03 大乐透随机号码

# -*- 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.')

你可能感兴趣的:(2019-03-03 大乐透随机号码)