align – one of the strings “left”, “center” or right”
font – a triple (fontname, fontsize, fonttype)
例如:
turtle.write('DBGS', #the text
True, #move the mouse to the bottom left corner of the text
'center', #align the text to centre
('Arial', 10, 'bold')) #'Arial' font, size 10, bold
如果您想实际绘制它们,请参见this question获取一些提示和建议。否则,turtle有一个内置的文本方法^{} 。参数如下:
例如:
画“D”的一种简单方法是用半圆:
^{pr2}$相关问题 更多 >
编程相关推荐