Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
utils.pyという関数を含むファイルがありますf1()。
utils.py
f1()
別の Python スクリプトからにアクセスできimport utilsます。2つの方法の違いは何ですか?execfile('utils.py')f1()
import utils
execfile('utils.py')