2017-03-08から1日間の記事一覧
入門Python3 5.3 importによるモジュールの読み込み 別のファイルに実装されたPythonのコードをimport文で読み込むことができます。 # -- test.py -- def helloworld(): print("Hello World!") # -- main.py -- import test test.helloworld() $ py main.py …
入門Python3 5.3 importによるモジュールの読み込み 別のファイルに実装されたPythonのコードをimport文で読み込むことができます。 # -- test.py -- def helloworld(): print("Hello World!") # -- main.py -- import test test.helloworld() $ py main.py …