美文网首页
2019-03-03 大乐透随机号码

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

作者: 子小亦大 | 来源:发表于2019-03-03 18:06 被阅读0次

    # -*- 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()

    相关文章

      网友评论

          本文标题:2019-03-03 大乐透随机号码

          本文链接:https://www.haomeiwen.com/subject/htdmuqtx.html