Commit 5657be1a by BellCodeEditor

save project

parent 220fe62b
Showing with 15 additions and 0 deletions
import random
# 玩家出拳
player=input("奥力给,干了兄弟们!:")
print("我:我出"+player)
#机器人出拳
robot=["石头""剪刀","布"]
player2=random.choice(robot)
print("机器人:去死!"+player2+"吧")
if player==player2:
print("机器人:平局")
elif (player=="布" and player2=="石头") or (player=="石头" and player2=="剪刀")or (player=="剪刀" and player2=="布")
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