Commit 7e852390 by BellCodeEditor

save project

parent a4ecc23e
Showing with 13 additions and 10 deletions
......@@ -2,13 +2,16 @@ import random
list=["石头","剪刀","布"]
B=random.choice(list)
a=input("欢迎来到zz儿童欢乐多之石头剪刀布")
if B==a:
print("平局")
elif B=="石头"and a=="布":
print("win")
elif B=="布"and a=="剪刀":
print("win")
elif B=="剪刀"and a=="石头":
print("win")
if a in list:
if B==a:
print("平局")
elif B=="石头"and a=="布":
print("win")
elif B=="布"and a=="剪刀":
print("win")
elif B=="剪刀"and a=="石头":
print("win")
else:
print("lose")
else:
print("lose")
\ No newline at end of file
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