[問題] 新手請教Turtle問題

看板Python作者 (bowwow)時間5年前 (2019/10/06 12:38), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
求教各位高手 小妹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://www.ptt.cc/bbs/Python/M.1570336726.A.0A3.html
文章代碼(AID): #1TcM_M2Z (Python)
文章代碼(AID): #1TcM_M2Z (Python)