Commit d162adf4 by BellCodeEditor

save project

parent f8984436
Showing with 6 additions and 12 deletions
import random import turtle
p=input("出拳") p=turtle.Pen()
print("玩家出"+p) p.write("卧恨春\n卧恨春\n卧是春绿\n叶是易透竹")
l=["石头","剪刀","布"] p.hideturtle
c=random.choice(l) turtle.done()
print(c)
if p==c:
print("平局")
elif p=="剪刀" and c=="布"or p=="石头" and c=="剪刀" or p=="布" and c=="石头":
print("你有了")
else:
print("你无了")
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