Liste d'importation Python à partir du fichier py
# In first .py file
mylist = ['this', 'that', 'theother']
# In second file
from variables import mylist
Breakable Bee
# In first .py file
mylist = ['this', 'that', 'theother']
# In second file
from variables import mylist