Commit 50c34dd1 by BellCodeEditor

save project

parent 8bb8d45e
Showing with 6 additions and 5 deletions
...@@ -6,15 +6,15 @@ computer=random.choice(list) ...@@ -6,15 +6,15 @@ computer=random.choice(list)
print("电脑出拳:"+computer) print("电脑出拳:"+computer)
if player in list: if player in list:
if player == computer: if player == computer:
if computer == player: if computer == player:
print("平局了!") print("平局了!")
elif plaer=="石头" and computer=="剪刀" elif plaer=="石头" and computer=="剪刀"
print("你赢了") print("你赢了")
elif plaer=="剪刀" and computer=="布" elif plaer=="剪刀" and computer=="布"
print("你赢了") print("你赢了")
elif plaer=="布" and computer=="石头" elif plaer=="布" and computer=="石头"
print("你赢了") print("你赢了")
elif: else:
print("输了") print("输了")
else: else:
print("输错了") 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