Commit 57cd055c by BellCodeEditor

save project

parent f8d76003
Showing with 15 additions and 0 deletions
player=input("石头 剪刀 布")
print("玩家出拳:"+player)
import random
list=["石头","剪刀","布"]
compute=random.choice(list)
print("计算机出拳:"+compute)
if player==compute:
print("平局")
elif player=="石头" and compute=="剪刀":
print("恭喜你,给你一个大逼斗")
elif player=="布" and compute=="石头":
print("恭喜你,给你一个大逼斗")
elif player=="剪刀" and compute=="布":
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