使用TextCtrl中的这段代码,我得到:
os.listdir(self.dirname)
self.bottomview.AppendText(str(os.listdir(self.dirname)))
>>>[u'a.txt', u'b.txt', u'c.txt']您将如何添加os.listdir以使其列出如下:
a.txt
b.txt
c.txt发布于 2013-08-26 05:50:55
我已经在普通的python上试过了,下面的命令工作-
print "\n".join(os.listdir(self.dirname)) 看看这在wxpython中是否有效。
https://stackoverflow.com/questions/18414045
复制相似问题