Commit 45025aa0 by BellCodeEditor

save project

parent b2b891e3
Showing with 12 additions and 3 deletions
import random import random
while True:
player = input("玩家出拳:1,2,3")
print("玩家出拳:"+player)
list=["1","2","3"]
cp = random.choice(list)
print("电脑出拳:"+cp)
if player==cp:
print("")
elif player=="1" and cp=="2"or player=="2"and cp=="3"or ("玩家获胜")
else:
print("电脑获胜")
\ 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