Commit a173b9d7 by BellCodeEditor

auto save

parent cf7f6774
Showing with 15 additions and 3 deletions
for i in range (10):
print("悟空")
\ No newline at end of file
import random
i=input("请你输入:")
fi=["剪刀","石头","布"]
ad=random.choice(fi)
print("电脑出"+ad)
if i in fi:
if i == ad:
print("平局")
elif (i=="剪刀" and ad=="石头") or (i=="石头" and ad=="布") or (i=="布" and ad=="剪刀"):
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