Commit b82095e8 by BellCodeEditor

save project

parent c95296f1
Showing with 8 additions and 2 deletions
import random
ride=input("请出拳(石头/剪刀/布):")
print("玩家出拳为"+ride)
irid("石头","剪刀","布")
player_01=random.choice(ieid)
player01("石头","剪刀","布")
player_01=random.choice(player01)
print("机器人出拳为"+piayer_01)
if player == player_01:
print("平局")
elif player == "剪刀" && player_01 == "石头"||player == "石头" && player_01 == "布" || player == "布" && player_01 == "剪刀": 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