Commit 271cfbd2 by BellCodeEditor

save project

parent 143a1d1d
Showing with 8 additions and 5 deletions
import turtle import turtle
#背景颜色
screen=tuple.Screen() screen=tuple.Screen()
screen.bgclor("light blue") screen.bgclor("light blue")
#写字
pen=turtle.pen() pen=turtle.pen()
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write(“嗨,诺依~\npython写电子贺卡真是太有趣了~\n我也喜欢python~\n悟空",font=(times",20,"nomal")) pen.width(“嗨,悟空,写贺卡真是太有趣了,我喜欢你!!!我能嫁给你吗?你女朋友不会生气吧?不像我,我只会心疼giegie~~~——诺依",font=(Times",20,"normal"))
pen.hidetutle() pen.hidetutle()
#画爱心
pan1.tutle.pen() pan1.tutle.pen()
pan.pancolor("red") pan1.pancolor("red")
pan1.pensize(5) pan1.pensize(5)
lovesize=screen.textinput("提示""你想要多大的爱心呀?") lovesize=screen.textinput("提示你想要多大的爱心呀?")
len=int(lovesize) len=int(lovesize)
pan1.left(45) pan1.left(45)
pani.forward(2*len) pan1.forward(2*len)
pan1.circle(100,180) pan1.circle(100,180)
pen1.right(90) pen1.right(90)
pan1.circle(100,180) pan1.circle(100,180)
......
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