Commit b64d5d8d by BellCodeEditor

auto save

parent 0a7b0048
Showing with 13 additions and 2 deletions
alist = [88, 75, 72, 82, 90, 85, 78, 91]
\ No newline at end of file
import random
player = input("玩家请出拳:(石头/剪刀/布):")
print("玩家出拳:"+player)
list=["石头","剪刀","布"]
cp=random.choice(list)
print("电脑出拳:"+cp)
if player==cp:
print("平局")
elif player=="石头" and cp=="剪刀" or player=="剪刀" and cp=="布" or player =="布" and cp=="石头":
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