Commit b98578b3 by BellCodeEditor

save project

parent 6316fd89
Showing with 8 additions and 0 deletions
......@@ -4,3 +4,11 @@ import random
list=["石头","剪刀","布"]
letter=random.choice(list)
print("计算机出拳:"+letter)
if player=random:
print("平局")
else: ("剪刀"==computer and player=="石头") or ("剪刀"==computer and player=="布") or ("布"==computer and player=="布"):
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