python计算机视觉PDF+源码+数据高清非扫描


python计算机视觉(PDF+源码+数据)高清非扫描
资源截图
代码片段和文件信息
import os
import re

reg_pyfile=re.compile(r‘.*.py$‘re.I)

def expand_tabs(file0):
    ‘‘‘
    This function takes the name of a python source file expands all tabs to 4 spaces (for
PEP 8 compliance) and rewrites the file in place.
    ‘‘‘
    str_file_contents=open(file0‘rb‘).read()
    str_pep_contents=str_file_contents.replace(‘x09‘4*‘x20‘)
    open(file0‘wb‘).write(str_pep_contents)
    return None

def pepify_directory(path_root):
    for (pathsubdirlst_file) in os.walk(path_root):
        for file0 in (file1 for file1 in lst_file if reg_pyfile.match(file1)):
            expand_tabs(os.path.join(pathfile0))
            print(os.path.join(pathfile0))
            pass
        pass
    return None

if __name__==‘__main__‘:
    pepify_directory(‘.‘)
    pass


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       6148  2012-03-11 19:46  python计算机视觉data.DS_Store

     文件     670658  2012-01-11 15:07  python计算机视觉dataalcatraz1.jpg

     文件     669114  2012-01-11 15:07  python计算机视觉dataalcatraz2.jpg

     文件    1461177  2009-06-01 05:55  python计算机视觉dataAquaTermi_lowcontrast.JPG

     文件     241794  2011-10-18 22:48  python计算机视觉dataook_frontal.JPG

     文件    2241054  2011-10-25 19:51  python计算机视觉dataook_perspective.bmp

     文件     230615  2011-10-18 18:18  python计算机视觉dataook_perspective.JPG

     文件     985933  2009-07-26 12:21  python计算机视觉dataoy_on_hill.jpg

     文件       7579  1999-07-06 09:03  python计算机视觉dataC-uniform03.ppm

     文件    2251198  2011-10-17 20:25  python计算机视觉datacalibration.JPG

     文件    2277942  2011-10-17 20:27  python计算机视觉datacalibration_setup.JPG

     文件     309926  2011-03-03 05:35  python计算机视觉dataceramic-houses_t0.png

     文件     562468  2011-02-22 22:06  python计算机视觉dataclimbing_1_small.jpg

     文件     507494  2011-02-22 22:07  python计算机视觉dataclimbing_2_small.jpg

     文件     246073  2011-02-22 17:10  python计算机视觉datacrans_1_small.jpg

     文件     205125  2011-02-22 17:11  python计算机视觉datacrans_2_small.jpg

     文件     221033  2009-02-12 04:13  python计算机视觉dataempire.jpg

     文件     341543  2011-01-24 11:47  python计算机视觉datafisherman.jpg

     文件     265965  2011-03-03 05:35  python计算机视觉dataflower32_t0.png

     文件    1981898  2011-08-21 21:59  python计算机视觉datafontimages.zip

     文件      89821  2011-11-10 15:20  python计算机视觉datahouses.png

     文件      30434  2009-06-10 11:43  python计算机视觉datajkfaces.xml

     文件    4342116  2011-08-21 21:53  python计算机视觉datajkfaces.zip

     文件        317  2012-05-24 22:07  python计算机视觉dataLICENSE.txt

     文件      57754  2011-08-21 21:57  python计算机视觉dataselectedfontimages.zip

     文件     481414  2011-02-22 21:46  python计算机视觉datasf_view1.jpg

     文件     480328  2011-02-22 21:47  python计算机视觉datasf_view2.jpg

     文件   19029967  2011-10-16 19:28  python计算机视觉datasudoku_images.zip

     文件   11532027  2011-08-21 21:49  python计算机视觉datasunsets.zip

     文件     441584  2009-03-10 17:52  python计算机视觉datasunset_tree.jpg

............此处省略103个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)