python编写图像列表的最佳方法

2024-10-04 01:22:16 发布

您现在位置:Python中文网/ 问答频道 /正文

我有这个代码,一个图像列表。在

self.image0 = gtk.Image()
self.image1 = gtk.Image()
self.image2 = gtk.Image()
[...]
self.image20 = gtk.Image()

self.img = # list of all this 20 images. How to write this?

我在找一种用短线写这张单子的方法。在

你能帮我吗?在

谢谢


Tags: of代码图像imageselfgtk列表img