統計

          留言簿(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 閱讀(1217) | 評論 (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 閱讀(254) | 評論 (0)  編輯

          學習Python的好網站

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

          Python中的Closure

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

          主站蜘蛛池模板: 隆尧县| 类乌齐县| 凤翔县| 广州市| 眉山市| 佛学| 象州县| 卫辉市| 乃东县| 抚顺市| 秦安县| 寻乌县| 信宜市| 田东县| 会同县| 比如县| 云林县| 吉隆县| 镇康县| 景泰县| 平顶山市| 怀化市| 铜山县| 平谷区| 越西县| 邹平县| 鄂托克旗| 金湖县| 剑河县| 敦化市| 怀柔区| 揭阳市| 沙洋县| 甘德县| 上犹县| 西充县| 牟定县| 大兴区| 东台市| 义乌市| 桑植县|