recipe-302477.py 文件源码

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

项目:code 作者: ActiveState 项目源码 文件源码
def __SkipRubish(self, aFilePathList):
        """
        Edit this method to select the private file that will not be backed up.
        """

        myFilteredList = []

        for myFilePath in aFilePathList:
            myLowerFilePath = string.lower(string.strip(myFilePath))

            if myLowerFilePath[-4:]=='.obj':
                continue

            if myLowerFilePath[-5:]=='.class':
                continue

            if myLowerFilePath[-1:]=='~':
                continue

            myFilteredList.append(myFilePath)

        return myFilteredList
评论列表


问题


面经


文章

微信
公众号

扫码关注公众号