0
How can i run py code in b.py file by using py code in a.py?
File a.py file=open("b.py") --------------------------- File b.py print ("Hello world")
12 Respuestas
+ 1
First make a function wich prints out hello world. in b.py
then in the same directory as b.py create a.py
then in a.py:
from a import function name.
then use it
0
Impossible...
0
Possible
0
There's nothing that's impossible...
0
Are there any library to do that???
0
it says:
<_io.TextIOWrapper name='b.py' mode='r' encoding='UTF-8'>
0
You can change the code
0
Just run the code in b.py using a.py
0
I hope you can do that
0
I need it, please help me, who read the question...
0
no output.