Commit 39c0f34d by BellCodeEditor

save project

parent 882bba35
Showing with 7 additions and 1 deletions
import random
play = ("请出拳","石头","剪刀","布")
play = input("请出拳","石头","剪刀","布")
print("玩家出拳:+play)
list=["石头","剪刀",""]
col = random.choice(list)
print("电脑出拳:"+col)
if play == comput:
print("平局")
elif play == "石头" and comput == "剪刀":
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