Commit e0279d93 by BellCodeEditor

save project

parent d2109113
Showing with 15 additions and 11 deletions
player=input("请出拳(石头/剪刀/布):")
print("玩家出拳:"+player)
import random
list1 = ["剪刀","石头","布"]
cmp = random.choice(list1)
print("电脑出拳:"+cmp)
if cmp == player:
while True
player=input("请出拳(石头/剪刀/布):")
print("玩家出拳:"+player)
import random
list1 = ["剪刀","石头","布"]
cmp = random.choice(list1)
print("电脑出拳:"+cmp)
if player in list1
if cmp == player:
print("平局")
elif player=="剪刀" and cmp=="布" or player=="石头" and cmp=="剪刀" or player=="布" and cmp=="石头":
elif player=="剪刀" and cmp=="布" or player=="石头" and cmp=="剪刀" or player=="布" and cmp=="石头":
print("你赢了!!!!!!!!!!!")
else:
print("你死了!!!")
\ No newline at end of file
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