python - use exec and compile to run code found in another python file

preview_player
Показать описание
An alternative to using compile and exec would be to add a function in the import file. The function shall contain all code that needs to be executed in the user python program.
Рекомендации по теме
welcome to shbcf.ru