Commit f5b5237c by BellCodeEditor

save project

parent 86c3a8b4
Showing with 20 additions and 18 deletions
import turtle//导入模块
Pen=turtle.pen//创建画笔
screen=turtle.screen//导入screen
screen.bgcolor("green")//设置背景颜色
pen=turtle.Pen()//导入画笔
pen.pensize(5)//设置字体大小
pen.pencolor("red")//设置字体颜色
import turtle
Pen=turtle.pen
screen=turtle.Screen()
screen.bgcolor("green")
pen=turtle.Pen()
pen.pensize(5)
pen.pencolor("red")
pen.penup()
pen.goto(100,-100)
pen.write("雷霆嘎巴\nZBC\n真呢到\n"font=("Times",20,"normal"))
pen.hideturtle()//隐藏画笔
pen.write("雷霆嘎巴\nZBC\n真呢到\n",font=("Times",20,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pencolor("red")//设置颜色
pen1.pensize(5)//字体大小
pen1.left(45)//左转45
pen1.forward(100)//移动100
pen1.circle(50,180)//画半圆
pen1.right(90)//旋转90
pen1.circle(50,180)//画半圆
pen1.forward(100)//移动100
pen1.hideturtle()//隐藏画笔
pen1.pencolor("red")
pen1.pensize(5)
len=60
pen1.left(45)
pen1.forward(100)
pen1.circle(2*len,180)
pen1.right(90)
pen1.circle(2*len,180)
pen1.forward(100)
pen1.hideturtle()
turtle.done()
......
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