Answers for "how to import string module in python"

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 how to import a module given a stringg

import importlib

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

Code answers related to "how to import string module in python"

Python Answers by Framework

Browse Popular Code Answers by Language