Commit a015a80e by BellCodeEditor

save project

parent 67b04ba6
Showing with 16 additions and 2 deletions
player=input("请出拳,石头/")
\ No newline at end of file
import random
player=input("请出拳,石头/剪刀/布)
print("玩家出拳:"+plear)
list["剪刀,石头,"]ping
computer=random.choice(list)
print("电脑出拳"+computer)
if plarer == computer:
print("平局")
elif plare == "石头" and combputer =="剪刀":
print("赢了")
elif plare == "" and combputer =="石头":
print("赢了")
else:
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