用法:
turtle.sety(y)
y- 一個數字(整數或浮點數)
參數:
將 turtle 的第二個坐標設置為
y
,保持第一個坐標不變。>>> turtle.position() (0.00,40.00) >>> turtle.sety(-10) >>> turtle.position() (0.00,-10.00)
相關用法
- Python turtle.sety()用法及代碼示例
- Python turtle.setworldcoordinates()用法及代碼示例
- Python turtle.setx()用法及代碼示例
- Python turtle.settiltangle()用法及代碼示例
- Python turtle.setup用法及代碼示例
- Python turtle.settiltangle用法及代碼示例
- Python turtle.setundobuffer()用法及代碼示例
- Python turtle.setx用法及代碼示例
- Python turtle.setheading用法及代碼示例
- Python turtle.seth()用法及代碼示例
- Python turtle.setworldcoordinates用法及代碼示例
- Python turtle.speed()用法及代碼示例
- Python turtle.shapesize用法及代碼示例
- Python turtle.shape()用法及代碼示例
- Python turtle.screensize用法及代碼示例
- Python turtle.shape用法及代碼示例
- Python turtle.shapetransform()用法及代碼示例
- Python turtle.speed用法及代碼示例
- Python turtle.stamp用法及代碼示例
- Python turtle.showturtle()用法及代碼示例
注:本文由純淨天空篩選整理自python.org大神的英文原創作品 turtle.sety。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。