I dont know why I can't import my own module in my app. There is a quick example how it works. Now it works as long as I use "from smt import smt" When it works But when I try use "import smt" it doesnt work, I dont know why. Now err. message says my function from that module is not defined Doesnt work
- 积分
0 - 话题
0 - 评论
3236 - 注册排名
2082
When you use
import * from smt
you are importing everything from this file with their original names, but when you useimport smt
you have to call them likesmt.foo()
.