Commit 39d23580 by BellCodeEditor

save project

parent 7118c9f9
Showing with 5 additions and 0 deletions
import random
player=input("请出拳:石头/剪刀/布")# 玩家出拳
while True
if not player=="剪刀" or if not player==,"石头", or if not player=="布":
print("你脑子瓦特了,选错了,重新选"
player==input("玩家出拳"+player)
print("玩家出拳:"+player)
list=("石头","剪刀","布")
computer=random.choice(list)
......@@ -15,3 +19,4 @@ elif player=="布" and computer=="石头":
else:
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