1/16/2011

[読書]Head First Python 読んでみる。 Chapter2

Head First Python 読んでみる。 Chapter2


読書記録としてはWikiの方がよいのだろうけど、続かなそうなので。。
この心理的作用はなんだんだろう?お手軽だから?うーん。

Chapter 2 はモジュール作成から配布を中心に、名前空間など書いてある。
この段階からPyPIの使い方が書かれているのは良いことなんだと思う。

  • How to distribution the own Python Modules.
  • How to use the Python Package Index ("PyPI"). Registration, Upload Module, Update Module.
  • Python Name Space. Main name space is known __main__.
  1. A module is a text file that contains Python code.
  2. We can use the distribution utilities to turn own module into a shareable package.
  3. The setup.py program provides metadata about your module and is used
    to build, install, and upload your packaged distribution.
  4. The range() BIF can be used with 'for' to iterate a fixed number of times.
  5. Including end=’’ as a argument to the print() BIF switches off its automatic inclusion of a new-line on output.
  6. Arguments to your functions are optional if you provide them with a default value.

0 件のコメント: