Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок- 1
Importing Variables Without Running
What if I want to import certain variables from a module without running the module again? The variables I want to import are return values of a function inside my module.
1 ответ
0
I believe you can use from for variables.
from myModule import myVar