Commit b60f22bd by BellCodeEditor

save project

parent 9a3ee511
Showing with 11 additions and 8 deletions
# 玩家出
player=input("请出拳(石头、剪刀、布):")
print("玩家出:"+player)
import random
print("玩家"+player)
list=("石头","剪刀","布")
x=random.choice(list)
print(x)
\ No newline at end of file
list=["石头","剪刀""布"]
player=input("请出拳("石头/剪刀/)")
computer=random.choice(list)
print("玩家出:"+player)
print("电脑出:"+computer)
if player==computer
print("平局")
elif (player=="石头" or computer=="",player == "剪刀" or "石头",player=="" or computer=="剪刀"):
print ("你输了")
else(player=="石头" and computer=="剪刀",player=="剪刀" and "",player=="" and computer=="石头"):
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