|
比如:
import random
a = 喜欢
b = 不喜欢
c = 还行
print("你喜欢小甲鱼吗?")
if random.randrange(1,4) == 1:
print("A:",a)
d = 1
if random.randrange(1,3) == 1:
print("B:",b)
print("C:",c)
else:
if random.randrange(1,3) == 1:
d = 2
if random.randrange(1,3) == 1:
print("A:",b)
print("B:",a)
print("C:",c)
else:
print("A:",c)
print("B:",a)
print("C:",b)
else:
d = 3
if random.randrange(1,3) == 1:
print("A:",b)
print("B:",c)
print("C:",a)
else:
print("A:",c)
print("B:",b)
print("C:",a)
s = input()
if s == "A":
s = 1
if s == "B":
s = 2
if s == "C":
s = 3
if s == d:
print("不错^o^")
else:
print("你敢!")
|
|