Commit 27aba96e by BellCodeEditor

save project

parent a6c3c929
Showing with 21 additions and 0 deletions
......@@ -4,3 +4,24 @@ print("玩家出拳:"+player)
list=["石头","剪刀","布"]
jiqiren=random.choice(list)
print("机器人出拳:"+jiqiren)
if player==" 石头":
if jiqiren=="石头":
print("平局")
if jiqiren=="剪刀":
print("你赢了")
if jiqiren=="布":
print("你输了")
if player==" 剪刀":
if jiqiren=="石头":
print("你输了")
if jiqiren=="剪刀":
print("平局")
if jiqiren=="布":
print("你赢了")
if player==" 布":
if jiqiren=="石头":
print("你赢了")
if jiqiren=="剪刀":
print("你输了")
if jiqiren=="布":
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