close
第九章

取參數:sys.argv
檔案列表:os.listdirs
目前所在位置:os.getcwd
檔案操作:os.rename()
要當作模組的話,記得要把非必要的程式放在 if __name__ == '__main__' 區塊裡
解析參數,得使用 optparse,不要再用 argparse 了。
透過 javax.tools 可以動態編譯 java 程式為 .class
第九章最後一節則是總結前面所提到的,做出一個簡單的類 ant 工具,可以自動找 .java 並且進行編譯。

更多有關 The Definitive Guide to Jython: Python for the Java Platform 的事情
arrow
arrow

    elleryq 發表在 痞客邦 留言(0) 人氣()