Commit 90967d50 by BellCodeEditor

auto save

parent a50ceeec
Showing with 32 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
#导入库
import turtle
#创建屏幕
screen=turtle.Screen()
#添加背景颜色
screen.bgcolor("light pink")
#创建画笔
p=turtle.Pen()
p.penup()
p.goto(100,-100)
#回复内容
p.write(" 春眠不觉晓,\n 处处闻啼鸟。\n 夜来风雨声,\n 花落知多少。",font=("宋体",30,"bold"))
#隐藏画笔
p.hideturtle()
p1=turtle.Pen()
p1.pensize(3)
p1.pencolor("red")
p1.left(45)
len=100
p1.forward(2*len)
p1.circle(len,180)
p1.right(90)
p1.circle(len,180)
p1.forward(2*len)
p1.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
screen=turtle.Screen()
screen.textinput("喜欢我吗","喜欢")
\ 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