Commit 2db7adf3 by BellCodeEditor

save project

parent d0b7097f
Showing with 6 additions and 5 deletions
......@@ -4,14 +4,15 @@ liediao=["石头","剪刀","布"]
diannao=random.choice(liediao)
print("玩家出:"+wanjia)
print("电脑出:"+dinnao)
if wanjia==diannao
if wanjia in liediao
if wanjia==diannao
print("平局")
elif (wanjia==石头 and diannao="布"):
elif (wanjia==石头 and diannao="布"):
print("玩家胜利")
elif (wanjia==剪刀 and diannao="布"):
elif (wanjia==剪刀 and diannao="布"):
print("玩家胜利")
elif (wanjia==石头 and diannao="剪刀"):
elif (wanjia==石头 and diannao="剪刀"):
print("玩家胜利")
else:
else:
print("电脑胜利")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment