推荐学习书目
› 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
yellowtail
V2EX  ›  Python

大佬们是怎么培养自己的面对对象编程能力(思想)的?

  •  
  •   yellowtail · Jul 2, 2021 · 1963 views
    This topic created in 1911 days ago, the information mentioned may be changed or developed.
    有的时候实现同样功能看其他人用 oo 实现,感觉很难,几乎看不懂。那些人是怎么思考的。。怎么才能做到。。。比如有些功能用过程方便一点,有些用对象方便一点,怎么能把握好那个点,而且在写面对对象的时候有底气自己的实现方法较优(感觉自己写的时候总不太得劲,
    SaltyLeo
        1
    SaltyLeo  
       Jul 2, 2021 via iPhone
    没啥特别的捷径,就是多写,多看。
    LinShiG0ng
        2
    LinShiG0ng  
       Jul 2, 2021
    我最开始接触的语言就是 java,导致我现在不管写什么都想先 new 一个对象。
    FurN1
        3
    FurN1  
       Jul 2, 2021 via iPhone
    我是初学者,之前为了处理数据积累了快 1000 行代码,已经封装了好多函数还是很长。然后花了一两周改写成 OO,期间遇到不少问题,一个一个解决了。现在同样的事只需要写不到十行代码。

    大二就学了 C++,但是直到自己动手的那两周,我才理解了 OO
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   844 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 21:19 · PVG 05:19 · LAX 14:19 · JFK 17:19
    ♥ Do have faith in what you're doing.