Commit c075a2f5 by BellCodeEditor

save project

parent acc9447f
Showing with 18 additions and 3 deletions
name=input("你叫什么名字") import random
print(name+"你好呀")# 我们都爱夸夸夸 wanjia=input("玩家出拳:")
\ No newline at end of file print("玩家出拳"+wanjia)
a=["剪刀","石头","布"]
jisuanji=random.choice(a)
print("计算机出拳"+a)
if wanjia=a:
if wanjia="剪刀" and jisuanji="布":
print("你赢了")
elif wanjia="石头" and jisuanji="剪刀":
print("你赢了")
elif wanjia="布" and jisuanji="石头":
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