import random nema=input("石头/剪刀/布") print("玩家出:"+nema) list=["石头","剪刀","布"] gh=random.choice(list) print("电脑出:"+gh)