Commit 018aac53 by BellCodeEditor

auto save

parent 3515f1dd
Showing with 18 additions and 2 deletions
# 我们都爱夸夸夸
\ No newline at end of file
++ "b/\346\265\213\350\257\225.py"
import random
import random
a=input("输入玩家请出拳:")
b=["石头","剪刀","布"]
if a in b:
print("玩家出拳:"+a)
c=random.choice(b)
print("计算机出拳:"+c)
if a==c:
print("平局")
elif (a=="石头"and c=="剪刀")or(a=="剪刀"and c=="布")or(a=="布"and c=="石头"):
print("玩家赢!")
else:
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