identifier
cannot contain periods. Your assumption is incorrect.
Can python do "from package import module.symbol_name"?
-
14-06-2023 - |
Pergunta
According to http://docs.python.org/2/reference/simple_stmts.html#the-import-statement, We can use
from module import identifier
and identifier can be module.name
But python suggest an syntax error, is there a mistake in the document?
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow