学习python也有一段时间了,今天才知道python有一个turtle的模块,可以用来画线。
import turtle
pen = turtle.Pen()
pen.forward(100)
forward()方法的参数单位为像素。
学习python也有一段时间了,今天才知道python有一个turtle的模块,可以用来画线。
import turtle
pen = turtle.Pen()
pen.forward(100)
forward()方法的参数单位为像素。
本文标题:python学习笔记之turtle模块
本文链接:https://www.haomeiwen.com/subject/vgliwttx.html
网友评论