Commit cd70bb8a by BellCodeEditor

save project

parent 220fe62b
Showing with 14 additions and 0 deletions
import random
jieguo=input("您出啥?")
if jieguo=="剪刀" or jieguo=="石头" or jieguo=="布":
print(jieguo)
jie=["剪刀","石头","布"]
com=random.choice(jie)
print(com)
if jieguo==com:
print("平局")
elif (jieguo=="剪刀" and com=="布") or (jieguo=="布" and com=="石头") or (jieguo=="石头" and com=="剪刀"):
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