Commit 9d3fbb62 by BellCodeEditor

save project

parent ecc99bdc
Showing with 97 additions and 0 deletions
turtle.goto(0.200)
turtle.circle(200)
turtle.penup()
turtle.goto(-100,50)
pen.pendown()
pen.color("blue")
pen.begin_fill()
pen.circle(20)
pen.end_fill()
pen.forward(200)
pen.begin_fill()
pen.circle(20)
pen.end_fill()
pen.goto(0,50)
pen.circle(-50,3)
pen.goto(-150,-70)
pen.goto(0,170)
pen.goto(-150,-70)
pen.forward(300)
pen.hideturtle()
pen.down()
\ No newline at end of file
import turtle
pen=turtle.Turtle()
pen.color("brown","red")
pen.circle(150)
pen.goto(0,0)
pen.color("brown","blue")
pen.right(45)
pen.forward(150)
pen.left(45)
pen.forward(212)
pen.goto(0,0)
pen.color("brown","yellow")
pen.seth(-90)
pen.right(45)
pen.forward(150)
pen.left(45)
pen.forward(212)
pen.goto(0,0)
pen.color("brown","brown")
pen.seth(-180)
pen.right(45)
pen.forward(150)
pen.left(45)
pen.forward(212)
pen.goto(0,0)
pen.hideturtle()
pen.donn()
\ No newline at end of file
{
"folders": [
{
"path": "."
}
],
"settings": {}
}
\ No newline at end of file
import turtle
#画圆脸
turtle.penup() #画笔抬起
turtle.goto(0, -200) #回到画大圆脸的初始位置
turtle.pendown()#落下画笔
turtle.circle(200)#画一半径为200,圆心在画笔左边圆
#画左眼
turtle.penup()#画笔抬起
turtle.goto(-100, 50) #回到画左眼小圆的初始位置
turtle.pendown()#落下画笔
turtle.fillcolor('blue') #设置填充颜色为蓝色
turtle.begin_fill()#开始填充
turtle.circle(20) #画一半径为20的圆,圆心在画笔左边
turtle.end_fill()#填充结束
#画右眼
turtle.penup()#画笔抬起
turtle.goto(100, 50) #回到画右眼小圆的初始位置
turtle.pendown()#落下画笔
turtle.fillcolor('blue') #设置填充颜色为蓝色
turtle.begin_fill()#开始填充
turtle.circle(20) #画一半径为20的圆,圆心在画笔左边
turtle.end_fill()#填充结束
#画鼻子
turtle.penup()#画笔抬起
turtle.goto(0, 50) #回到画鼻子的初始位置
turtle.pendown()#落下画笔
turtle.circle(-50, steps=3) #画半径-50圆内切正三角形,圆心在画笔右边
#画嘴
turtle.penup()#画笔抬起
turtle.goto(-150, -70) #回到画嘴的初始位置左嘴角
turtle.pendown()#落下画笔
turtle.goto(0, -170)#移动到嘴底部画线
turtle.goto(150, -70) #移动到右嘴角画线
turtle.done()#停止画笔等待关闭画布
\ No newline at end of file
print("hello world!")
\ 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