Commit 5fbdcb71 by BellCodeEditor

save project

parent 387c6e62
Showing with 17 additions and 6 deletions
import turtle p=input("你想出啥1 2 3")
pen=turtle.Pen() print("玩家"+p)
pen.write("你好鸭!",font=("Timrs",30,"normal")) import random
pen.hideturtle() l=["1","2","3"]
turtle.done() a=random.choice(l)
\ No newline at end of file print("计算"+a)
if p==a:
print("平")
else:
if ("p==1"and"a==2") or ("p==2"and"a==3") or ("p==3"and"a==1"):
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