Python import module through CLI argument

前端 未结 0 1409
灰色年华
灰色年华 2020-11-29 13:20

I want to import a python script/module into my script based on CLI arguments. I want something like this:

import os
import sys
from sys.argv[1] import ClassN         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题