Commit 0d5f10c7 by BellCodeEditor

save project

parent b96776e1
Showing with 13 additions and 2 deletions
......@@ -3,4 +3,15 @@ list=["剪刀","石头","布"]
whil=input("输入剪刀,石头,布")
print("玩家"+whil)
dlannao=random.choice(list)
print("电脑"+dlannao)
\ No newline at end of file
print("电脑"+dlannao)
if whil==dlannao:
print("平局")
elif:whil=="剪刀" and dlannao=="布":
print("你赢了")
else:whil=="布" and dlannao=="石头"
print("你赢了")
else:whil=="石头" and dlannao=="剪刀"
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