用户:
无畏的树毛虫RR-5查看:0 回复:0 评论:0 创建时间:2023-03-04T17:03:43
【作品展示】

【作品介绍】
jj
【作品源代码】
import random
doing = [['厕所里', '月球', '房顶'], ['干饭', '编程', '引起大规模停电'],
['无畏的树毛虫', '活泼的金冠泥', '糖糖老师']]
temp = [[],[],[]]
while True:
if doing[0] and doing[1] and doing[2]:
n = random.randint(0, len(doing[0])-1)
w = random.randint(0, len(doing[1])-1)
d = random.randint(0, len(doing[2])-1)
if input() == '':
z = doing[2][d], '在', doing[0][w], doing[1][n]
print(z)
x = doing[2].pop(d)
temp[2].append(x)
x = doing[1].pop(d)
temp[1].append(x)
x = doing[0].pop(d)
temp[0].append(x)
else:
temp[0], doing[0] = doing[0], temp[0]
temp[1], doing[1] = doing[1], temp[1]
temp[2], doing[2] = doing[2], temp[2]
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn