buildout.cfg の説明
うお。こういうの読みたかった。 www.freia.jp
テックブログ 技術ブログ techblog
技術ブログを集めます。まずはリストを作成して。順番に見ていきます。
ピックアップ
やってみた記事は読みたくなる techlog.voyagegroup.com
メモ
- サイトのタイトルは英語が多い XXX TECH BLOG
- 確認事項
- 更新頻度
- デザイン
- カテゴリ数
- SNS
リスト
import
次はpythonのimport
import されたら main 以下は実行されない
def sub(x,y): return x - y if __name__ == "__main__": print sub(10000, 1)
test_module.py を import (基本)
import test_module a = test_module.Test() a.sayStr("Hello")
モジュールからクラスをimport(from登場)
from test_module import Test a = Test() a.sayStr("Hello")
クラスに別名(as登場)
from test_module import Test as Test2 a = Test2() a.sayStr("Hello")
モジュールに別名(as)
import test_module as test a = test.Test() a.sayStr("Hello")