Commit 7e852390 by BellCodeEditor

save project

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