Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

ブックマーク / www.sakito.com (1)

  • Terminal上でのPythonのコード補完

    このblogは、著者である「sakito」が技術的に生存している事を報告するために存在します タイトルを「紹介マニアどらふと版」から変更しました コードの補完ができると結構便利です。 コード補完の設定は Python チュートリアルのキー割り当て に記述があります。 readlineの機能を利用します。 $HOME以下に.pystartupのような名前で以下のファイルを作成します。 import atexit import os import readline import rlcompleter historyPath = os.path.expanduser("~/.pyhistory") def save_history(historyPath=historyPath): import readline readline.write_history_file(historyPath)

  • 1