StationDict.py 文件源码

python
阅读 33 收藏 0 点赞 0 评论 0

项目:IM_Climate 作者: IMDProjects 项目源码 文件源码
def _writeToCSV(self):
        '''
        INFO
        ----
        Writes a 2-dimensional list to a CSV text file
        Comma-delimits values.  If there is no data, then there is no attempt to
        creat a file.

        RETURNS
        -------
        None

        '''
        if self._dataAsList:
            with open(self._filePathAndName,'w') as csvFile:
                writer = csv.writer(csvFile, lineterminator='\n', quoting=csv.QUOTE_NONNUMERIC )
                writer.writerows(self._dataAsList)
            csvFile.close()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号