Commit 2dfd2854 by BellCodeEditor

save project

parent 53a6c00a
Showing with 21 additions and 4 deletions
import turtle import turtle//导入模块
Pen=turtle.pen Pen=turtle.pen//创建画笔
screen=turtle.screen screen=turtle.screen//导入screen
screen.bgcolor("green")//设置背景颜色
pen=turtle.Pen()//导入画笔
pen.pensize(5)//设置字体大小
pen.pencolor("red")//设置字体颜色
pen.goto(100,-100)
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()//隐藏画笔
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