Commit a2885e00 by BellCodeEditor

save project

parent 3d0a5d8a
Showing with 16 additions and 3 deletions
import random
a=["同浩泽","马雨泽","刘文浩"]
computer=random.choice(a)
print("最终抽的人是:"+computer)
a=input("请出拳(石头/剪刀/布)")
print("玩家出拳"+a)
b=input("请出拳(石头/剪刀/布)")
print("玩家出拳"+b)
import random
a=["石头","剪刀","布"]
computer=random.choice(a)
print(computer)
print("计算机出的是:"+computer)
if a==b:
print("平局")
elif b=="剪刀" and a=="布" or b=="布" and a=="石头" or b=="石头" and a=="剪刀":
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