Commit c5a63f58 by BellCodeEditor

save project

parent 7f5b92ef
Showing with 12 additions and 2 deletions
......@@ -3,4 +3,15 @@ print("玩家出拳:"+player)
list=["石头","剪刀","布"]
compter=random.choice(list)
print("玩家出拳:"+player)
print("电脑出拳:"+player)
\ No newline at end of file
print("电脑出拳:"+compter)
if player in list:
if player==cvompter:
print("打平了!")
elif(player=="石头" and compter=="剪刀") or (player=="布" and compter=="石头") or (player=="剪刀" and compter=="布"):
print("恭喜你赢了")
else:
("你输了")
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