문제

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?

도움이 되었습니까?

해결책

identifier cannot contain periods. Your assumption is incorrect.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top