Commit bf0552cb by BellCodeEditor

save project

parent 27e33f33
Showing with 11 additions and 10 deletions
......@@ -6,16 +6,17 @@ print(a)
d=["石头,剪刀,布"]
d=random.choice()
print(d)
if a==d:
print("平局")
elif a=="石头" and d=="剪刀":
print("你胜了")
elif a=="剪刀" and d=="布":
print("你胜了")
elif a=="布" and d=="石头":
print("你胜了")
else:
print("你胜了")
if a in d :
if a==d:
print("平局")
elif a=="石头" and d=="剪刀":
print("你胜了")
elif a=="剪刀" and d=="布":
print("你胜了")
elif a=="布" and d=="石头":
print("你胜了")
else:
print("你胜了")
else:
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