Intro
零碎的Python記事Content
Eclipse設定
Windows1. 先安裝Python後
2. 安裝 PyDev for Eclipse
Eclipse > Help > Install New Software
> Work with: Pydev - http://pydev.org/updates
3. 設定PyDev Eclipse > Window > Preference
> PyDev > Interpreters > Python Interpreter
> New 一個出來, 選擇執行檔 $Python根目錄$/python.exe
當前路徑
import os os.getcwd()
String Format
%d = 5 ; %% = %'use percent to format ex. %d' % 5 #output='use percent to format ex. 5' '{0} in {1}'.format("a", "b") #output='a in b'
沒有留言:
張貼留言