Commit 0d5f10c7 by BellCodeEditor

save project

parent b96776e1
Showing with 12 additions and 0 deletions
...@@ -4,3 +4,14 @@ whil=input("输入剪刀,石头,布") ...@@ -4,3 +4,14 @@ whil=input("输入剪刀,石头,布")
print("玩家"+whil) print("玩家"+whil)
dlannao=random.choice(list) dlannao=random.choice(list)
print("电脑"+dlannao) 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