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