Commit 96d2ba2c by BellCodeEditor

auto save

parent 0183f172
import turtle
pen=turtle.Pen()
pen.speed(50)
for i in range(36):
for i in range(4):
pen.forward(100)
pen.right(90)
pen.right(10)
turtle.done()
\ No newline at end of file
import turtle
pen=turtle.Pen()
s=turtle.Screen()
s.bgcolor("light blue")
pen.penup()
pen.goto(100,-100)
pen.write("亲爱的诺伊,\n你好,你看上去非常非常胖,\n该减肥啦。",font=("times",10,"normal"))
pen.hideturtle()
a=turtle.Pen()
len=50
a.pensize(5)
a.pencolor("red")
a.left(45)
a.forward(2*len)
a.circle(len,180)
a.right(90)
a.circle(len,180)
a.forward(2*len)
turtle.done()
\ No newline at end of file
import turtle
#添加背景颜色
a=turtle. Screen()
a.bgcolor("light yellow")
#写文字
import turtle
#画黑心
len=int(input("大小:"))
pen1=turtle.Pen()
pen=turtle.Pen()
#移动位置
pen.penup()
pen.goto(100,-100)
pen.write("酒醉花开民之曰,\n其名天若弃我,世当谬灭。\n___悟空",font=("楷体",14,"normal"))
pen.hideturtle()
if len<=50:
pen1.pencolor("red")
elif len>50 and len<=100:
pen1.pencolor("yellow")
elif len>100 and len<=200:
pen1.pencolor("blue")
else:
pen1.pencolor("green")
#画爱心
len=50
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(5)
pen1.pensize(50)
pen1.speed(11)
pen1.left(45)
pen1.forward(2*len)
pen1.circle(len,180)
......
print("holle worrd")
\ No newline at end of file
# 上节课你是这样绘制的五角星👇:
# 这节课你可以利用新学的知识自定义五角星的颜色么?
import turtle
ink = input("什么色")#绘制五角星#
ink = input("什么色:")#绘制五角星#
pen = turtle.Pen()
pen.fillcolor(ink)
pen.begin_fill()
......
import turtle
turtle.done()
\ No newline at end of file
import turtle
import turtle
screen=turtle.Screen()
screen.bgcolor("Light yellow")
pen1=turtle.Pen()
pen1.pencolor("black")
pen1.pensize(5)
pen1.fillcolor("black")
pen1.begin_fill()
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.end_fill()
#写文字
pen=turtle.Pen()
pen.color("black")
pen.up()
pen.goto(50,-100)
pen.write("诺依,\n你好!\n我是小敏,\n再见!",font=("Times",15,"normal"))
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