Python海龟bgpic在Python中立即消失
错误是Python海龟bgpic在Python中立即消失,python,python-turtle,Python,Python Turtle,错误是\u tkinter.TclError:无法打开“image1.gif”:没有这样的文件或目录 我不知道如何修复它。我是一个12岁的男孩,这是我的观点,我认为这是真的。) 嗨,你得说 import turtle as t t.bgpic(picname="image1.gif") 错误不是说明了一切吗?该文件不存在。 import turtle wn=turtle.Screen() wn.setup(width=700,height=400) wn.title(&qu
\u tkinter.TclError:无法打开“image1.gif”:没有这样的文件或目录
我不知道如何修复它。我是一个12岁的男孩,这是我的观点,我认为这是真的。) 嗨,你得说
import turtle as t
t.bgpic(picname="image1.gif")
错误不是说明了一切吗?该文件不存在。
import turtle
wn=turtle.Screen()
wn.setup(width=700,height=400)
wn.title("image")
wn.addshape(currentDir+"")#where is you picture
#example wn.addshape(currentDir+"\\Resources\\image.gif")
image=turtle.Turtle()
image.speed(0)
image.shape(currentDir+"")# write where is your gif in ""
#so i am useing a mac so i say "downloads\\image.gif"
image.penup()