推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
donghouhe
V2EX  ›  Python

大大们,开发一个 web 站,多关键字查找匹配文件名,之后显示出来,有好的开源的吗?

  •  
  •   donghouhe ·
    donghouhe · Jan 17, 2016 · 3288 views
    This topic created in 3905 days ago, the information mentioned may be changed or developed.

    希望有经验的各位指点一下,希望是 flask 框架的。

    有位同学啊,托我开发个网站,需求就是多关键字匹配文件名(服务器上的文件),符合的列出来。

    我的想法是: linux 的话, ls+grep 不就解决了吗? win 也有列目录文件的命令,列出来我用 python 做个 filter 不也能完成了吗?

    • 可是,毕竟用到系统程序,而不是纯 python ,这么应付我有些心虚。
    • 我想我的解决方案万万不能与 elasticsearch 这种相比,非常心虚。
    • 还有结果导出为 excel 的需求,要登录做权限控制,各位大大,有推荐吗?
    4 replies  •  2016-01-17 22:29:47 +08:00
    6IbA2bj5ip3tK49j
        1
    6IbA2bj5ip3tK49j  
       Jan 17, 2016
    Windows 下结题
    donghouhe
        2
    donghouhe  
    OP
       Jan 17, 2016
    @xgfan everything 确实牛!!但是权限控制啊怎么做呢?
    just1
        3
    just1  
       Jan 17, 2016 via Android
    获取目录列表,做正则表达式也是可以
    strwei
        4
    strwei  
       Jan 17, 2016
    直接 apcahe 展示目录,然后 ctrl+f 你懂得
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   877 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 22:23 · PVG 06:23 · LAX 15:23 · JFK 18:23
    ♥ Do have faith in what you're doing.