Commit fd38b822 by BellCodeEditor

save project

parent 97e43402
Showing with 19 additions and 0 deletions
#石头剪刀布
#玩家出拳
import random
a_a=input("你出什么????????(石头剪刀布)")
b_a=["石头","剪刀","布"]
if a_a in b_a:
print("哦,原来如此!!!玩家出"+a_a)
a_b=random.choice(b_a)
print("我出" + a_b)
if a_a==a_b:
print("平局")
elif a_a=="石头" and a_b=="剪刀" or a_a=="剪刀" and a_b=="布" or a_a=="布" and a_b=="石头":
print("恭喜,你赢了!!!!!!!!")
else:
print("太太太太太遗憾了,你输了")
else:
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