Commit 7ef1b1d4 by BellCodeEditor

save project

parent ad9155e6
Showing with 8 additions and 2 deletions
......@@ -3,4 +3,10 @@ player=input("请出拳")
print(player)
list=["石头","剪子","布"]
dian=random.choice(list)
print(dian)
\ No newline at end of file
print(dian)
if player==dian:
print("平")
elif player=="石头" and dian=="剪子" or player=="剪子" and dian=="布" or player=="布" and dian=="石头":
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