猫史档案馆


来之不易()不喜勿喷()()()

用户:卧子集卧子集查看:0 回复:0 评论:0 创建时间:2022-12-24T21:12:18


emotion_编程猫_搓头

#随机生成器
import random
# 随机池
mylist = [['宇智波·卡卡西', '凹凸曼', '迪迦', '帅b', '外来不明生物',"宇宙喵·暴龙战士",'蓝色妖姬·切尔西,','ikun'],
          ['猪圈', '喵坑里', '珠穆朗玛峰上', '办公室','卧室'],
          ['make One million magnitude earthquake', '抄作业', '红烧子集', '偷鸡', '玩火喵', '倒立狂奔', '吃shi', '生吃自己','生吃猪肉']]
temp = [[], [], []]
while True:
    if mylist[0] and mylist[1] and mylist[2]:
        a = input("请输入enter")
        if a == '':
            n = random.randint(0, len(mylist[0])-1)
            w = random.randint(0, len(mylist[1])-1)
            d = random.randint(0, len(mylist[2])-1)
            print(mylist[0][n], "正在", mylist[1][w], mylist[2][d])
            x = mylist[0].pop(n)
            temp[0].append(x)

            x = mylist[1].pop(w)
            temp[1].append(x)

            x = mylist[2].pop(d)
            temp[2].append(x)
        else:
            break

    else:
        if len(mylist[0]) == 0:
            temp[0], mylist[0] = mylist[0], temp[0]
        if len(mylist[1]) == 0:
            temp[1], mylist[1] = mylist[1], temp[1]
        if len(mylist[2]) == 0:
            temp[2],mylist[2] = mylist[2],temp[2]


回复

上一页1 页 / 共 0下一页