R
R
rink02018-03-04 23:29:40
Python
rink0, 2018-03-04 23:29:40

I have two .py files. I need to import the second file into the first one, how to do it?

For example, there is main.py and project.py
I need to import project.py into main.py
How can I do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
longclaps, 2018-03-04
@rink0

Use the directive import.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question