how to define turtle's pen

19 views
Skip to first unread message

杨子翔

unread,
Aug 1, 2019, 10:09:41 AM8/1/19
to Skulpt
python's turtle have a pen class 

import turtle
t=turtle.Pen()
t.forward(100)


error :'AttributeError: 'module' object has no attribute 'pen' on line 2

How do I fix it?

Reply all
Reply to author
Forward
0 new messages