V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
Tianny
V2EX  ›  Python

最近想学习 Python 的迭代器、装饰器、生成器、和闭包等内容。求老司机推荐推荐学习资源。

  •  
  •   Tianny · 2017-02-09 17:21:55 +08:00 · 3202 次点击
    这是一个创建于 2604 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题,网上教程看的一头雾水。 希望大家推荐下这方面写的好的书籍或者 Blog 和文章等等。 谢谢大家!

    17 条回复    2017-02-10 23:51:47 +08:00
    ipwx
        1
    ipwx  
       2017-02-09 17:31:35 +08:00   ❤️ 1
    Tianny
        2
    Tianny  
    OP
       2017-02-09 17:33:36 +08:00
    @ipwx 非常感谢!
    XIVN1987
        3
    XIVN1987  
       2017-02-09 17:35:00 +08:00
    Fluent Python ,比你想要的还要深入!!
    Tianny
        4
    Tianny  
    OP
       2017-02-09 17:45:42 +08:00
    @XIVN1987 谢了 估计刚开始看不懂。有循序渐进的么
    lzjun
        5
    lzjun  
       2017-02-09 18:18:57 +08:00   ❤️ 2
    推荐两篇文章
    理解 Python 装饰器看这一篇就够了: https://foofish.net/python-decorator.html
    完全理解 Python 迭代对象、迭代器、生成器 : https://foofish.net/iterators-vs-generators.html
    joshz
        6
    joshz  
       2017-02-09 18:41:50 +08:00 via Android   ❤️ 1
    廖雪峰教程,不过不是仅针对这几个方面
    Tianny
        7
    Tianny  
    OP
       2017-02-09 18:43:07 +08:00
    @lzjun 非常感谢!
    kancloud
        8
    kancloud  
       2017-02-09 18:47:13 +08:00   ❤️ 1
    提供一些资源供参考 http://www.kancloud.cn/special/python
    fhefh
        9
    fhefh  
       2017-02-09 19:27:04 +08:00
    @lzjun #5 好文章 收藏了
    ansheng
        10
    ansheng  
       2017-02-09 20:11:29 +08:00   ❤️ 1
    shuimugan
        11
    shuimugan  
       2017-02-09 21:52:34 +08:00   ❤️ 1
    jiangpeng
        12
    jiangpeng  
       2017-02-09 22:06:06 +08:00   ❤️ 1
    Expert Python Programming 也可以,二版也在翻译中 http://www.epubit.com.cn/book/details/4637
    coolloves
        13
    coolloves  
       2017-02-10 08:24:11 +08:00 via iPhone
    马克
    bintianbaihua
        14
    bintianbaihua  
       2017-02-10 09:14:47 +08:00
    官方文档,廖雪峰的博客
    brucezhou
        15
    brucezhou  
       2017-02-10 18:54:06 +08:00
    边实践边理解,可以看看我的 Github : https://github.com/zhouxinkai/awesome-python3-webapp
    Tianny
        16
    Tianny  
    OP
       2017-02-10 20:05:01 +08:00
    @brucezhou awesome thanks !
    Override
        17
    Override  
       2017-02-10 23:51:47 +08:00 via Android
    我记得这几点我都是现学现用的。。因为看源码看到这些内容,就去 Google 搜,然后把源码看懂。如果楼主有面向对象思维的话应该更容易理解
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1346 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:38 · PVG 07:38 · LAX 16:38 · JFK 19:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.