Commit 9f10f53d by BellCodeEditor

save project

parent 4163b7f6
Showing with 6 additions and 0 deletions
...@@ -5,3 +5,8 @@ print("玩家出拳:"+player) ...@@ -5,3 +5,8 @@ print("玩家出拳:"+player)
list=["1","2","3"] list=["1","2","3"]
cp = random.choice(list) cp = random.choice(list)
print("电脑出拳:"+cp) 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