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.
PyRun_InteractiveLoop 呼び出しでローカル/グローバル変数を設定しようとしています。実行方法とは異なり、ループはグローバル/ローカル引数を受け入れないため、その方法がわかりません。
私は何が欠けていますか?
exec の C API バージョンが必要な場合は、試しPyRun_Fileてみてください。ただし、何を達成しようとしているのか正確にはわかりません。
PyRun_File