Commit 8f2cdaae by BellCodeEditor

save project

parent d404c24d
Showing with 19 additions and 2 deletions
# 玩家出拳 # 玩家出拳
import random
play=input("请输入(石头,剪刀,布)") play=input("请输入(石头,剪刀,布)")
print("玩家输入"+play) list=["石头","剪刀","布"]
\ No newline at end of file if play in list:
computer=random.choice(list)
print("牛逼输入:"+play)
print("二哈输入:"+computer)
if play==computer:
print("平局")
elif (play=="石头" and computer=="剪刀") :
print("牛逼胜利"+"二哈:好你个臭小子,胆肥了?")
elif (play=="布" and computer=="石头") :
print("牛逼胜利"+"二哈:好你个臭小子,胆肥了?")
elif (play=="剪刀" and computer=="布") :
print("牛逼胜利"+"二哈:好你个臭小子,胆肥了?")
else:
print("你还牛逼呢,我才牛逼呢,小loser!!")
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