标签: python for-loop tkinter reference
我需要引用我的图片,否则它将被放入垃圾箱。但我发现很难将其列入清单。有人可以告诉我怎么做吗?
for i in range(lenlist1): b = Piclist[i] pic = tkinter.PhotoImage(file = b) d = (i*400) + 20 canvas.create_image(1,d,image=pic, anchor = tkinter.NW)