Python Modules most worthwhile reading

前端 未结 4 886
一向
一向 2021-01-29 23:42

I have been programming Python for a while and I have a very good understanding of its features, but I would like to improve my coding style. I think reading the source code of

4条回答
  •  我在风中等你
    2021-01-30 00:24

    I vote for itertools. You'll learn a lot of functional programming style from using this code, though perhaps not from reading the source.

    For a good module-by-module tutorial, try Doug Hellmann's Python Module of the Week. I also like the python programming style/practices explored and developed at WordAligned. I also like Peter Norvig's code, especially the spelling corrector code and the sudoku solver.

    Other cool modules to learn: collections, operator, os.path, optparse, and the process/threading modules.

提交回复
热议问题