[[PageOutline]] = Eclipse IDE = * 下載安裝: * JRE6:http://java.com/zh_TW/download/manual.jsp * http://javadl.sun.com/webapps/download/AutoDL?BundleId=39494 * Eclipse 3.5.2 classic:http://www.eclipse.org/downloads/ * 下載:http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.5.2-201002111343/eclipse-SDK-3.5.2-win32.zip * PyDev:http://pydev.org * 安裝 plug in:http://marketplace.eclipse.org/updatesite/help?url=http://pydev.org/updates/ * HELP → Install New Software → Add。 * 在 Location 填入:http://pydev.org/updates/ * 將 PyDev 全打勾,選 next…next…accept。 * 設定: * Windows → Preferences→ Pydev: * Python interpreter:設定你 python.exe 所在位置。 * system PYTHONPATH:設定 library 所在資料匣。 * 開始: * File → New → Other → Pydev → Pydev Project,或 crtl + n → Pydev → Pydev Project。 * Project name:設定你的專案名稱:test。 * Project contents:讓系統設定你專案所在目錄。 * Project type:選 Python。 * Grammer Version:選擇 Python 版本。 * Interpreter:選擇你所使用的直譯器。 * 在 test 專案按右鍵 → New Pydev package。 = windows xp 環境變數 = * 我的電腦→內容→進階→環境變數→系統變數。 * 將你 python 的路徑新增。 = NetBeans IDE = * 版本:6.9.1。 * 參考: http://wiki.netbeans.org/Python * 下載及安裝 JDE:http://www.oracle.com/technetwork/java/javase/downloads/index.html * 下載 NetBean:http://netbeans.org/downloads/index.html * 安裝 Python plugin:Tools → Plugins → Available Plugins → 尋找 Python → 把旁邊的三個結果打勾 → 按下面的 Install → 重開 NetBeans。 * 下載 jVi:http://jvi.sourceforge.net/ * 安裝 jVi: 1. Open NetBeans and browse to Tools -> Plugins 1. Click the "Downloaded" tab 1. Click the "Add Plugins..." button 1. Browse to jVi directory that contains the .nbm files 1. Select both .nbm files and click "Open" 1. Make sure "jVi KeyBindings" and "jVi Core" are both selected for installation and click "Install" 1. Proceed through the plugin installation wizard." = mail = * http://libgmail.sourceforge.net/ * GAE:http://code.google.com/intl/zh-TW/appengine/docs/python/mail/overview.html * http://codecomments.wordpress.com/2008/01/04/python-gmail-smtp-example/ * http://www.example-code.com/python/python-gmail.asp * http://www.velocityreviews.com/forums/t346200-smtplib-and-tls.html * http://djkaos.wordpress.com/2009/04/08/python-gmail-smtp-send-email-script/ = 中文問題 = python SyntaxError: Non-ASCII character: * http://hi.baidu.com/daping_zhang/blog/item/09dda71ea9d7d21f4134173e.html * http://hi.baidu.com/daping_zhang/blog/item/847243a7b832ce95d1435833.html 編碼: * http://diveintopython3.org/strings.html = lib = == mysql == * mysqlDb:http://sourceforge.net/projects/mysql-python/ == py2exe == for python2.x * 官網:http://www.py2exe.org/ * 下載:http://sourceforge.net/projects/py2exe/files/ * 編 pygtk 問題: * http://romaprama.blogspot.com/2010/01/pygtk-py2exe.html == cx_freeze == for python3.1 * 下載:http://cx-freeze.sourceforge.net/ * 路徑:python3.1/Scripts * 指令:cxfreeze smartOutletSimulator --target-dir dist --target-name smartOutletSimulator.exe == tkinter == * 出現 「No module named _tkinter」 錯誤: 1. 安裝 Tcl/tk {{{ sudo apt-get install tcl-dev tk-dev }}} 1. rebuding python 1. test: 進入 python shell 後輸入以下命令。 {{{ import import _tkinter import tkinter # for python 3.0。 python 2.X 請將 t 改為 T,import Tkinter tkinter._test() # for python 3.0。 python 2.X 請將 t 改為 T,Tkinter._test() }}} * http://wiki.python.org/moin/TkInter = GUI = * http://www.awaretek.com/toolkits.html * http://wiki.python.org/moin/IntegratedDevelopmentEnvironments * GUI 列表:http://phaseit.net/claird/comp.lang.python/python_GUI.html * PyQt:http://www.riverbankcomputing.co.uk/software/pyqt/download * PyQt中文教學(支援3.1):http://ogc-daily.blogspot.com/2009/04/pyqt-part-1-introduction.html * PyGTK:http://www.pygtk.org/ = GAE = * 看 request header 中的 User-Agent 判斷 device (如 mobile) = IronPython = * 在 .net 平台上所實作的 python。http://ironpython.codeplex.com/ = import package = * http://docs.python.org/tutorial/modules.html#packages