用法:
turtle.shape(name=None)
name- 一個字符串,它是一個有效的 shapename
參數:
將 turtle 形狀設置為具有給定
name
的形狀,或者,如果未給出名稱,則返回當前形狀的名稱。帶有name
的形狀必須存在於 TurtleScreen 的形狀字典中。最初有以下多邊形形狀:“arrow”, “turtle”, “circle”, “square”, “triangle”, “classic”。要了解如何處理形狀,請參閱 Screen 方法register_shape()
。>>> turtle.shape() 'classic' >>> turtle.shape("turtle") >>> turtle.shape() 'turtle'
相關用法
- Python turtle.shapesize用法及代碼示例
- Python turtle.shape()用法及代碼示例
- Python turtle.shapetransform()用法及代碼示例
- Python turtle.shapetransform用法及代碼示例
- Python turtle.showturtle()用法及代碼示例
- Python turtle.shearfactor()用法及代碼示例
- Python turtle.shearfactor用法及代碼示例
- Python turtle.speed()用法及代碼示例
- Python turtle.setworldcoordinates()用法及代碼示例
- Python turtle.setx()用法及代碼示例
- Python turtle.settiltangle()用法及代碼示例
- Python turtle.screensize用法及代碼示例
- Python turtle.setup用法及代碼示例
- Python turtle.sety用法及代碼示例
- Python turtle.speed用法及代碼示例
- Python turtle.settiltangle用法及代碼示例
- Python turtle.stamp用法及代碼示例
- Python turtle.setundobuffer()用法及代碼示例
- Python turtle.stamp()用法及代碼示例
- Python turtle.setx用法及代碼示例
注:本文由純淨天空篩選整理自python.org大神的英文原創作品 turtle.shape。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。