📜  调整 Turtle 对象的大小 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:33.795000             🧑  作者: Mango

代码示例1
import turtle # importing turtle module
wm = turtle.Screen() # making a new window
turtleObject = turtle.Turtle() # making a turtle and naming it turtleObject
turtleObject.shape("square") # giving it a custom shape, here square
turtleObject.shapesize(stretch_wid = 5, stretchlen = 2, outline = 3) # resizing it. (self, stretch_wid, stretch_len, outline)
wn.exitonclick() # window will exit on mouse click, so you have a time to watch what goes on screen