Commit 60637453 by BellCodeEditor

save project

parent 899544de
Showing with 7 additions and 4 deletions
......@@ -8,9 +8,12 @@ player=input("石头/布/剪刀")
print("玩家出"+player)
ad=random.choice(let)
print(ad)
if ad==player:
if player in let:
if ad==player:
print("平局")
elif (ad=="石头" and player=="布") or (ad=="布" and player=="剪刀") or (ad=="剪刀" and player=="石头"):
elif (ad=="石头" and player=="布") or (ad=="布" and player=="剪刀") or (ad=="剪刀" and player=="石头"):
print("你赢了")
else:
print("你败了")
else:
print("你败了")
\ No newline at end of file
print("你输错了")
\ No newline at end of file
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