Commit d0a1bc44 by BellCodeEditor

auto save

parent b4caab9e
Showing with 5 additions and 6 deletions
#导入模块 #导入模块
import turtle import turtle
#创建一支画笔 #创建一支画笔
pen = turtle.Pen() pen = turtle.Pen()
screen = turtle.Screen() screen = turtle.Screen()
screen.bgcolor("pink") screen.bgcolor("pink")
len = screen.textinput("提示","你想画多大的爱心") #创建变量len表示圆的半径
love=int(len) len = screen.textinput("提示","你想要多大的爱心")
love = int(len)
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write("春眠不觉晓,\n处处闻啼鸟",font=("Times",20,"normal")) pen.write("春眠不觉晓,\n处处闻啼鸟",font=("Times",20,"normal"))
......
import turtle import turtle
s=turtle.Screen() s=turtle.Screen()
s.textinput("姓名框","你叫什么名字") s.textinput("姓名框","你叫什么名字?")
turtle.done() turtle.done()
\ 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