Commit a1beb4c2 by BellCodeEditor

auto save

parent 1d439a4e
Showing with 3 additions and 2 deletions
import random import random
list = ["拳头","剪刀","布"] list = ["拳头","剪刀","布"]
while True: while True:
print("欢迎你参加拳头剪刀布的比赛")
player = input("请输入") player = input("请输入")
if player in list: if player in list:
computer = random.choice(list) computer = random.choice(list)
...@@ -15,4 +16,4 @@ while True: ...@@ -15,4 +16,4 @@ while True:
else: else:
print("恭喜你输了") print("恭喜你输了")
else: else:
print("傻逼,输入错误!重输一遍!再错我让黑客封了你的号!") print("输入错误!重输一遍!再错我让黑客封了你的号!")
\ No newline at end of file \ 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