Commit 1bbf0475 by BellCodeEditor

save project

parent 2cc92f25
Showing with 16 additions and 11 deletions
import random import random
player=input("出拳:拳头,剪刀,布") while True:
print("玩家出拳",player) player=input("出拳:拳头,剪刀,布")
list=["拳头","布","剪刀"] print("玩家出拳",player)
fuuuuuck=random.choice(list) list=["拳头","布","剪刀"]
print("只因算只因出拳",fuuuuuck) fuuuuuck=random.choice(list)
if player == fuuuuuck: print("只因算只因出拳",fuuuuuck)
print("平局") if player in fuuuuuck:
elif player == "石头"and fuuuuuck=="剪刀"or player=="剪刀"and fuuuuuck=="布"or player=="布"and fuuuuuck=="石头": if player == fuuuuuck:
print("你个傻逼") print("平局")
else: elif player == "石头"and fuuuuuck=="剪刀"or player=="剪刀"and fuuuuuck=="布"or player=="布"and fuuuuuck=="石头":
print("你还是傻逼") 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