base_path = os.path.dirname(os.path.abspath(__file__))
_csvFilename = os.path.join(base_path, "bcForecasting.csv")
_csvFile = open (_csvFilename, 'wb')
_csvFile = csv.writer(_csvFile, quoting=csv.QUOTE_ALL)
_Header = self.makeIntoList (self.root.tss.series () [0].getAllTimes (), self.originalTimesteps + _futurePeriods)
_csvFile.writerow (_Header)
现在我想在Excel中打开已创建的bcForecasting.csv
文件。如何在Python中操作?
win32com
模块可以使用(我自己也用它来编写 PowerPoint 脚本)。 - DSM