Commit b7563524 by BellCodeEditor

save project

parent 46bd3d61
Showing with 13 additions and 1 deletions
import random import random
p=input("师傅,剪刀,破布,请出拳 :")
print("玩家出拳:"+p)
list=["师傅","剪刀","破布"] list=["师傅","剪刀","破布"]
a=random.choice(list) a=random.choice(list)
print(a) print(a)
if p==a:
print("平局")
elif p==" 师傅 " and a=="剪刀":
print("你赢了??????")
elif p=="破布" and a=="师傅":
print("你赢了??????")
elif p=="剪刀" and a=="破布":
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