Commit 74869dbf by BellCodeEditor

save project

parent 220fe62b
Showing with 100 additions and 0 deletions
# 玩家出拳
\ No newline at end of file
player = input("请出(1/2/3):")
print("玩家出拳:" + player)
import random
list=["1","2","3"]
computer=random.choice(list)
print(computer)
player = input("请出(1/2/3):")
print("玩家出拳:" + player)
import random
list=["1","2","3"]
computer=random.choice(list)
print("计算机出拳:"+player)
if player == computer:
print("平局")
elif (player=="1" and computer=="2")or(player=="2" and computer=="3")or(player=="3" and computer=="1")
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