locale --- 国际化服务
locale
turtle --- 海龟绘图
turtle
本章中描述的模块是很大程度上决定程序结构的框架。 目前,这里描述的模块都面向编写命令行接口。
本章描述的完整模块列表如下:
forward()
fd()
back()
bk()
backward()
right()
rt()
left()
lt()
goto()
setpos()
setposition()
teleport()
setx()
sety()
setheading()
seth()
home()
circle()
dot()
stamp()
clearstamp()
clearstamps()
undo()
speed()
position()
pos()
towards()
xcor()
ycor()
heading()
distance()
degrees()
radians()
pendown()
pd()
down()
penup()
pu()
up()
pensize()
width()
pen()
isdown()
pencolor()
fillcolor()
color()
filling()
begin_fill()
end_fill()
reset()
clear()
write()
hideturtle()
ht()
showturtle()
st()
isvisible()
shape()
resizemode()
shapesize()
turtlesize()
shearfactor()
tilt()
tiltangle()
shapetransform()
get_shapepoly()
onrelease()
ondrag()
begin_poly()
end_poly()
get_poly()
clone()
getturtle()
getpen()
getscreen()
setundobuffer()
undobufferentries()
bgcolor()
bgpic()
clearscreen()
resetscreen()
screensize()
setworldcoordinates()
delay()
tracer()
update()
listen()
onkey()
onkeyrelease()
onkeypress()
onclick()
onscreenclick()
ontimer()
mainloop()
done()
textinput()
numinput()
mode()
colormode()
getcanvas()
getshapes()
register_shape()
addshape()
turtles()
window_height()
window_width()
bye()
exitonclick()
setup()
title()
RawTurtle
RawPen
Turtle
TurtleScreen
Screen
ScrolledCanvas
Shape
addcomponent()
Vec2D
write_docstringdict()
turtledemo
cmd
Cmd
cmdloop()
do_help()
onecmd()
emptyline()
default()
completedefault()
columnize()
precmd()
postcmd()
preloop()
postloop()
prompt
identchars
lastcmd
cmdqueue
intro
doc_header
misc_header
undoc_header
ruler
use_rawinput
shlex
split()
join()
quote()
get_token()
push_token()
read_token()
sourcehook()
push_source()
pop_source()
error_leader()
commenters
wordchars
whitespace
escape
quotes
escapedquotes
whitespace_split
infile
instream
source
debug
lineno
token
eof
punctuation_chars