Commit ba3d3743 by BellCodeEditor

save project

parent 84d8fa97
Showing with 2 additions and 3 deletions
import random
player=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+player)
list=["剪刀""石头""布"]
list=["剪刀","石头","布"]
j=random.choice(list)
print(j)
if player==j:
......@@ -9,7 +9,6 @@ if player==j:
if player=="剪刀":
if j=="石头":
print("你输了")
if player=="剪刀":
if j=="布":
print("你赢了")
if player=="石头":
......@@ -20,7 +19,7 @@ if player=="石头":
if player=="布":
if j=="剪刀":
print("你输了")
if j=="":
if j=="石头":
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