Answers for "python import module by string"

1

how to import a module with a string?

import importlib

mymodule = importlib.import_module('matplotlib.text')
Posted by: Guest on June-09-2021
-1

python import from string

import importlib

i = importlib.import_module("matplotlib.text")
Posted by: Guest on December-04-2020

Python Answers by Framework

Browse Popular Code Answers by Language