用法:
turtle.mode(mode=None)
mode- 字符串之一“standard”, “logo” or “world”
參數:
設置 turtle 模式(“standard”, “logo” or “world”)並執行重置。如果未給出模式,則返回當前模式。
模式“standard” 兼容舊模式
turtle
.模式“logo” 與大多數徽標 turtle 圖形兼容。模式 “world” 使用用戶定義的 “world coordinates”。注意力:在這種模式下,如果角度出現扭曲x/y
unit-ratio 不等於 1。模式
初始 turtle 航向
正角
“standard”
向右(東)
counterclockwise
“logo”
向上(北)
clockwise
>>> mode("logo") # resets turtle heading to north >>> mode() 'logo'
相關用法
- Python turtle.mode()用法及代碼示例
- Python turtle.write_docstringdict()用法及代碼示例
- Python turtle.reset用法及代碼示例
- Python turtle.delay()用法及代碼示例
- Python turtle.write()用法及代碼示例
- Python turtle.getpen()用法及代碼示例
- Python turtle.isvisible用法及代碼示例
- Python turtle.onkey用法及代碼示例
- Python turtle.tracer用法及代碼示例
- Python turtle.end_fill()用法及代碼示例
- Python turtle.undo用法及代碼示例
- Python turtle.onscreenclick()用法及代碼示例
- Python turtle.speed()用法及代碼示例
- Python turtle.up()用法及代碼示例
- Python turtle.tilt()用法及代碼示例
- Python turtle.fillcolor()用法及代碼示例
- Python turtle.done()用法及代碼示例
- Python turtle.isvisible()用法及代碼示例
- Python turtle.reset()用法及代碼示例
- Python turtle.degrees用法及代碼示例
注:本文由純淨天空篩選整理自python.org大神的英文原創作品 turtle.mode。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。