from distutils.core import setup import py2exe setup( windows = [{"script":"antsstatemachine.py"}], data_files = [ (".", ["ant.png", "leaf.png", "spider.png"]) ] )
他把所有的图片文件放在data_files中。 如果我有很多个图片文件,那需要全部手工输入吗。有没有简便的办法。谢谢
--
[m [33m※ 来源:·水木社区 http://newsmth.net·[FROM: 114.240.126.*] [m
【 在 becooler (gfw Orz-1 freegate) 的大作中提到: 】 : 我看Beginning Game Development with Python and Pygame上的例程是这么写的 : from distutils.core import setup : import py2exe : ...................
[m [1;37m※ 来源:·水木社区 newsmth.net·[FROM: 219.134.63.*] [m