fdf.py 335 Bytes Edit 1 2 3 4 5 6 7 8 9 10 11 12 13 14 import random list=["石头","剪刀","布"] B=random.choice(list) a=input("欢迎来到zz儿童欢乐多之石头剪刀布") if B==a: print("平局") elif B=="石头"and a=="布": print("win") elif B=="布"and a=="剪刀": print("win") elif B=="剪刀"and a=="石头": print("win") else: print("lose")