Commit 2d9ac117 by BellCodeEditor

save project

parent 8a4783dd
Showing with 6 additions and 2 deletions
......@@ -4,4 +4,9 @@ import random
b=["布","剪刀","石头"]
f=random.choice(b)
print("计算机出拳:"+f)
print()
\ No newline at end of file
if a==f:
print("平局")
elif(a=="石头" and f=="剪刀")or(a=="布" and f=="石头")or(a=="剪刀" and f=="布"):
print("玩家赢")
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