Commit 7a4331f2 by BellCodeEditor

save project

parent 228e39d7
Showing with 8 additions and 7 deletions
player=input("请玩家出拳:"(石头,剪刀,)
player=input("请玩家出拳:"(石头,剪刀,))
print("请玩家出拳:"+player)
import random
list["石头","剪刀","布"]
computer=randow.choice(list)
print(letter)
if player in list
if player in list:
if player == "石头" and computer == "剪刀"
print("你赢了")
print("你赢了")
elif player == "剪刀" and computer == "布"
print("你赢了")
print("你赢了")
elif player == "布" and computer =="石头"
print("你赢了")
print("你赢了")
elif player == computer :
print("平手")
else:
print("你输了")
print(yes,"你赢了")
print(no,"你输了")
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