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.
execfile()関数を使用して、ファイルを構成ファイルとして使用しようとしています。ファイルには、一連の変数と値しかありません。しかし、コードで使用しようとすると、スローされますIOError: [Errno 2] No such file or directory
execfile()
IOError: [Errno 2] No such file or directory
これは私のコードです:
dictionary = {} execfile("myConfig.cfg", dictionary)