2009-02-23から1日間の記事一覧

if __name__ == '__main__':

Pythonのはなし。 Pythonでよく見かける下の1行。 if __name__ == '__main__': if以下はscriptファイルとして動作した場合のみ呼び出される。