Commit 16f7b04a by BellCodeEditor

save project

parent f220d0d0
Showing with 11 additions and 0 deletions
......@@ -4,3 +4,13 @@ print("玩家出拳:"+piayer)
lits=["石头","剪刀","布"]
NPC=random.choice(lits)
print("计算机出拳:"+NPC)
if piayer==NPC:
print("平局")
elif piayer=="石头"and NPC=="剪刀":
print("玩家获胜")
elif piayer=="剪刀"and NPC=="布":
print("玩家获胜")
elif piayer=="布"and NPC=="石头":
print("玩家获胜")
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