統計

          留言簿(1)

          DB

          Others

          QA

          Tech Website

          閱讀排行榜

          評論排行榜

          Python

          【轉】Python的標準logging模塊
               摘要: Programmers can configure logging either by creating loggers, handlers, and formatters explicitly in a main module with the configuration methods listed above (using Python code), or by creating a logging config file. The following code is an example of configuring a very simple logger, a console handler, and a simple formatter in a Python module:

            閱讀全文

          posted @ 2011-08-12 14:49 XXXXXX 閱讀(1222) | 評論 (0)  編輯

          Special Methods for Customizing Classes
               摘要: C.__init__(self[, arg1, ...] )
          Constructor (with any optional arguments)

          C.__new__(self[, arg1, ...] )[a]
          Constructor (with any optional argu ments); usually used for setting up subclassing of immutable data types

          C.__del__(self)
          Destructor

          C.__str__(self)
          Printable string representation; str() built-in and print statement

          C.__repr__(self)
          Evaluatable string representation; repr() built-in and '' operator

            閱讀全文

          posted @ 2011-07-21 23:25 XXXXXX 閱讀(260) | 評論 (0)  編輯

          學習Python的好網站

          posted @ 2011-06-17 20:26 XXXXXX 閱讀(4392) | 評論 (2)  編輯

          Python中的Closure

          posted @ 2011-06-15 07:31 XXXXXX 閱讀(1315) | 評論 (0)  編輯

          主站蜘蛛池模板: 邳州市| 磐石市| 关岭| 剑河县| 通辽市| 临泽县| 新蔡县| 丰宁| 卢氏县| 开阳县| 武夷山市| 东兴市| 柘荣县| 曲阜市| 合水县| 杭锦后旗| 临猗县| 泰顺县| 浮梁县| 霍山县| 正蓝旗| 海原县| 保山市| 民权县| 张北县| 紫阳县| 六安市| 藁城市| 晴隆县| 洛阳市| 乌拉特中旗| 沅江市| 于都县| 永济市| 衡南县| 漠河县| 吉水县| 潮安县| 石林| 综艺| 东丰县|