Commit 9f10f53d by BellCodeEditor

save project

parent 4163b7f6
Showing with 7 additions and 2 deletions
......@@ -4,4 +4,9 @@ player = input("玩家出拳:1,2,3")
print("玩家出拳:"+player)
list=["1","2","3"]
cp = random.choice(list)
print("电脑出拳:"+cp)
\ No newline at end of file
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