Commit 2cc92f25 by BellCodeEditor

save project

parent 01293755
Showing with 8 additions and 3 deletions
import random import random
player=input("出拳:拳头,剪刀,布") player=input("出拳:拳头,剪刀,布")
print("玩家出拳",player) print("玩家出拳",player)
list=["拳头""布""剪刀"] list=["拳头","布","剪刀"]
fuuuuuck=random.choice(list) fuuuuuck=random.choice(list)
print("只因算只因出拳",fuuuuuck) print("只因算只因出拳",fuuuuuck)
\ No newline at end of file if player == fuuuuuck:
print("平局")
elif player == "石头"and fuuuuuck=="剪刀"or player=="剪刀"and fuuuuuck=="布"or player=="布"and fuuuuuck=="石头":
print("你个傻逼")
else:
print("你还是傻逼")
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