Commit f233ec29 by BellCodeEditor

save project

parent 42d16ce8
Showing with 10 additions and 2 deletions
......@@ -7,4 +7,13 @@ print("玩家出拳:"+player)
#电脑出拳#
list = ("剪刀","石头","布")
com = random.choices(list)
print("电脑出拳:"+com)
\ No newline at end of file
print("电脑出拳:"+com)
if player == com:
elif player == "布"and com == "石头":
("你赢了")
elif player == "剪刀"and com == "布":
("你赢了")
elif player == "石头"and com == "剪刀":
("你赢了")
esle ("你输了")
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