Commit 3b7e25fe by BellCodeEditor

save project

parent dc68718b
Showing with 9 additions and 3 deletions
......@@ -6,5 +6,12 @@ list=["石头","剪刀","布"]
cu=random.choice(list)
print("计算机出拳:"+cu)
if pl==cu
elif
\ No newline at end of file
if pl==cu:
print("平局")
elif pl=="石头" and cu=="剪刀":
print("你赢了")
elif pl=="剪刀" and cu=="布":
print("你赢了")
elif pl=="布" and cu=="石头":
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