【python】pythonのシェルで外部ファイルを使う

スポンサーリンク

とりあえずメモ
1.example.py をつくる
2.pythonのシェルを起動

$ python
>>> import example

importで外部のpythonファイルを読み込むみたい