adding an image to the Turtle Screen
问题 How can I add image to my Turtle Screen using turtle graphics? whenever I use the function addshape I keep getting errors. does turtle graphics got any other way loading/importing images? for example: import turtle screen = turtle.Screen() image = r"C:\Users\myUser\Desktop\Python\rocketship.png" screen.addshape(image) turtle.shape(image) 回答1: The turtle module does have support for images, but only GIF images, not PNG or any other format. As the docs for addshape say: name is the name of a