Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 eval 从不同的变量导入模块,但我现在不知道为什么它不起作用。
nameImport = 'essai' eval('from '+nameImport +' import *')
错误:
from keyboard import * ^ SyntaxError: invalid syntax