Commit 0b74ad4d by BellCodeEditor

save project

parent ea5908e2
Showing with 15 additions and 2 deletions
# 玩家出拳
import random
player=input("请出拳(石头,剪刀,布)")
print("玩家出:"+player+"(●'◡'●)")
\ No newline at end of file
print("玩家出:"+player+"(●'◡'●)")
lie=["石头","剪刀","布"]
fi=random.choice(lie)
print("电脑出:"+fi)
if player in lie:
if fi==player:
print("平局")
elif (player=="石头" and fi=="剪刀") or (player=="剪刀" and fi=="布") or (player=="布" and fi=="石头"):
print("哦,你个**居然赢了")
else:
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