Commit e8ada433 by BellCodeEditor

save project

parent 0d90df4b
Showing with 15 additions and 2 deletions
......@@ -2,4 +2,18 @@ import random
player = input("请输入你的选择:石头、剪刀、布")
print("玩家出拳:" + player)
cpt = random.choice(["石头","剪刀","布"])
print("电脑出拳" + cpt)
\ No newline at end of file
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