1 安裝ubuntu10.102 軟體中心搜尋gnome 在搜尋結果中安裝gnome shell3 注消使用者登入,返回登入螢幕,在齒輪上點擊選擇gnome classic 切換到經典介面4 安裝oracle-javaOracle's Java 6 and 7.Ubuntu 11.10 does not offer Oracle's Java because OpenJDK can now replace it.However you can install Oracle's Java 6.2
如果你做很多在電腦上工作,最終你發現,有一些任務,你想實現自動化。例如,您可能要執行搜尋和替換過大量的文字檔,或在一個複雜的方式重新命名和重新排列了一堆照片檔案。也許你想編寫一個小型的自訂資料庫,或者一個專門的圖形化使用者介面應用程式,或一個簡單的遊戲。如果你是一個專業的軟體開發人員,你可能有幾個C / C + +
saghul, on code « How do event loops work in Python?How do event loops work in Python? 02/04/2013I had the pleasure to give a presentation at the first ever Python Devroom at FOSDEM. I talked about how event loops work internally and how pyuv
1. String類型輸出,看樣本x = "There are %d types of people" % 10binary = "binary"do_not = "don't"y = "Those who know %s and those who %s" % (binary, do_not)z = "Those who know %r and those who %r" % (binary, do_not)print xprint yprint zprint "I said: %r." %
The only constraint on the result of a decorator is that it be callable, so it canproperly replace the decorated function.decorator唯一限制是它必須是callable的,所以如果class作為decorator必須實現__call__方法使其成為callable的對象,而函數本身就是callable的。用class做decorator 1 class
When you want to log something, C pre-processor macros __FUNCTION__and __LINE__ are quite helpful (althogh the first is a GNU extensionfor GCC, AFAIK). Python have the __name__ pseudo-variable with thecurrent namespace, but isn’t quite helpful when