Commit e8ada433 by BellCodeEditor

save project

parent 0d90df4b
Showing with 14 additions and 0 deletions
...@@ -3,3 +3,17 @@ player = input("请输入你的选择:石头、剪刀、布") ...@@ -3,3 +3,17 @@ player = input("请输入你的选择:石头、剪刀、布")
print("玩家出拳:" + player) print("玩家出拳:" + player)
cpt = random.choice(["石头","剪刀","布"]) cpt = random.choice(["石头","剪刀","布"])
print("电脑出拳" + cpt) print("电脑出拳" + cpt)
if player == cpt:
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