Commit 60b03299 by BellCodeEditor

save project

parent 4a86a56f
Showing with 7 additions and 3 deletions
...@@ -5,6 +5,9 @@ new_list=["石头","剪刀","布"] ...@@ -5,6 +5,9 @@ new_list=["石头","剪刀","布"]
suijishu=random.choice(new_list) suijishu=random.choice(new_list)
print("计算机出拳:"+suijishu) print("计算机出拳:"+suijishu)
print("玩家出拳:"+prayer) print("玩家出拳:"+prayer)
if sjs == player
print("平局")
elif sjs=="石头" and player=="剪刀" or sjs=="剪刀" and player=="布" and player=="石头"
print("输了")
else:
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