Commit 27f9f9e2 by BellCodeEditor

auto save

parent b5c6bbbe
Showing with 16 additions and 0 deletions
import random
while True:
sb2=input("出拳吧!爸爸:")
list1=["剪刀","石头","布"]
computer=random.choice(list1)
print(sb2)
if sb2 in list1:
if sb2 == computer:
print("平局")
elif(sb2=="石头" and computer=="剪刀")or(sb2=="剪刀" and computer=="布")or(sb2=="布" and computer=="石头"):
print("wc,爸爸赢啦")
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