星期六, 2月 04, 2006

關於Python 的documentation

安裝完python後,都會自動安裝documentation,其中包含有Library reference ,裡面有所有python的module 說明。

文件內容先以大項目分類,再列出分類中的module。然後每個module列出class,function call。
所以使用時要記得import 該項module後才能使用。

以Timer為例,屬於treading module,所以在try 他的sample code前,要加上
from threading import *
不然,就是
import threading
但是在引用Timer( )class時要加上threading.Timer( )

沒有留言:

網誌存檔