Commit d96f5ba2 by BellCodeEditor

save project

parent ae7c26d5
Showing with 4 additions and 1 deletions
...@@ -4,12 +4,14 @@ import random ...@@ -4,12 +4,14 @@ import random
list1=["剪刀","石头","布"] list1=["剪刀","石头","布"]
nnnnb=random.choice(list1) nnnnb=random.choice(list1)
print(nnnnb) print(nnnnb)
if You_are_shabby in list1: if You_are_shabby in list1:
while True:
if You_are_shabby == nnnnb: if You_are_shabby == nnnnb:
print("平局") print("平局")
elif (You_are_shabby=="石头" and nnnnb=="剪刀")or(You_are_shabby=="剪刀" and nnnnb=="布")or(You_are_shabby=="布" and nnnnb=="石头"): elif (You_are_shabby=="石头" and nnnnb=="剪刀")or(You_are_shabby=="剪刀" and nnnnb=="布")or(You_are_shabby=="布" and nnnnb=="石头"):
print("ctmd 你赢了") print("ctmd 你赢了")
else: else:
print("哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈,耗子尾汁吧,年轻人") print("哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈,耗子尾汁吧,年轻人")
else: else:
print("你个sb!输错了!!!") 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