Commit a272f3b5 by BellCodeEditor

save project

parent 7ee6e61a
Showing with 8 additions and 2 deletions
......@@ -4,4 +4,10 @@ player=input("玩家出拳(石头,剪刀,布)")
new_list=["石头","剪刀","布"]
sjs=randdom.choice(new_list)
print("电脑"+sjs)
print("我"+player)
\ No newline at end of file
print("我"+player)
if sjs == player:
print("平局")
elif sjs=="石头" and player=="剪刀" or sjs=="剪刀" and player=="布" or sjs=="布" and player=="石头":
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