@@ -0,0 +1,1408 @@
+#! /usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%0A# searchDict = dict()%0A# filename = %22card_pic_item_layout%22%0A# searchDict%5Bfilename%5D = 0%0A# file_path = %22/Users/easytang/Documents/SVN/weibo5.1.2_mf_lite/weibo_dev_res/res/layout/act_pic_crop.xml%22  # %E8%BE%93%E5%87%BA%E6%96%87%E4%BB%B6%E8%B7%AF%E5%BE%84%E4%BF%A1%E6%81%AF%0A# file_object = open(file_path)%0A# file_content = file_object.read()  # %E8%8E%B7%E5%BE%97%E5%BD%93%E5%89%8D%E6%96%87%E4%BB%B6%E7%9A%84%E5%86%85%E5%AE%B9%0A# search_string = '%22@layout/card_pic_item_layout%22'%0A# searchDict%5Bfilename%5D += file_content.count(search_string)  # %E6%9B%B4%E6%96%B0%E6%AF%8F%E4%B8%AA%E5%9B%BE%E7%89%87%E7%9A%84%E5%BC%95%E7%94%A8%E6%AC%A1%E6%95%B0%0A# print(%22searchDict:%22 + str(searchDict))%0A# file_object.close();%0Aimport os%0A%0Adef remove_file(path):%0A    if os.path.exists(path):%0A        os.remove(path)%0A        print(path + %22 is removed%22)%0A%0Afile = open(%22UselessDrawable.txt%22)%0Adirname = %22/Users/easytang/Documents/SVN/weibo5.1.2_mf_lite_3/weibo_dev_res/res%22%0Awhile 1:%0A    lines = file.readlines(100000)%0A    if not lines:%0A        break%0A    for line in lines:%0A        filename1 = line%5B:-1%5D + '.xml'%0A        filename2 = line%5B:-1%5D + '.9.png'%0A        filename3 = line%5B:-1%5D + '.png'%0A        # print(filename)%0A        for p, d, f in os.walk(dirname):%0A            for sd in d:%0A                if %22drawable%22 not in sd:%0A                    continue%0A                path = os.path.join(p, sd, filename1)%0A                remove_file(path)%0A                path = os.path.join(p, sd, filename2)%0A                remove_file(path)%0A                path = os.path.join(p, sd, filename3)%0A                remove_file(path)%0A%0A

update test.py to help delete file [jiraid]function [version]:0.0.1