Commit 3b7c4071 by BellCodeEditor

save project

parent c61fde62
Showing with 19 additions and 0 deletions
player=input("剪刀/石头/布")
print("玩家出拳:"+player)
import random
list=["剪刀","石头","布"]
computer=random.choice(list)
print("计算机出拳:"+computer)
if player==computer:
print("平局")
elif player=="石头" and compurter=="剪刀":
print("player胜利")
elif player=="剪刀"and compurter=="布":
print("player胜利")
elif player=="布"and compurter=="石头":
print("player胜利")
else:
print("computer胜利")
\ 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