作者jovy (bowwow)
看板Python
标题[问题] 新手请教Turtle问题
时间Sun Oct 6 12:38:44 2019
求教各位高手
小妹python新手,
今天练习写了用turtle跑99乘法表,
内容如下:
import turtle
y = 40
for i in range(1,10):
turtle.penup()
turtle.goto(-200, y)
turtle.pendown()
x = str(i) + " |"
y = y-25
for j in range(1,10):
x = x + format(i * j, ">6d")
turtle.write(x, font=("Arial",14,"normal"))
但跑出来的结果前三行总是无法对齐,
求解,感激不尽!!!!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 24.6.248.200 (美国)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Python/M.1570336726.A.0A3.html