When the # character called a module when the blow
# a first embodiment
A = Import __ __ ( 'test.123')
a.123 #a is to get the top of the module test, and then calls the 123
# a second embodiment
import importlib # import module
a = importlib.import_module ( 'test.123') # get direct method call is test.123
[Python learning journey] --- Dynamically importing modules
Guess you like
Origin www.cnblogs.com/chenyuxia/p/12147079.html
Ranking