Commit 77b0630c by BellCodeEditor

save project

parent a15356c6
Showing with 10 additions and 2 deletions
import random
player=input("请出拳(石头/剪刀/布):")
sb=input("错误(报告司令,你呀有病/干鸡毛呀,sb)")
nom=0
list = ["石头","剪刀","布"]
computer = random.choice(list)
print(computer)
while not (player in list) and nom<5:
player=input("输入错误,重新输入(石头/剪刀/布):")
nom=nom+1
if player in list:
if player==computer:
print("平局")
......@@ -15,5 +22,5 @@ if player in list:
else :
print("你输了")
else:
print("错误")
print("sb")
\ 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