
1 mutoulbj 2013-06-26 10:44:15 +08:00 有吗? |
2 qdvictory 2013-06-26 10:45:51 +08:00 有可能是间接引用了吧 |
4 walnutist 2013-07-09 14:51:26 +08:00 |
5 qdcanyun 2013-07-09 16:20:48 +08:00 能否举个例子。。。。 如果4楼说的情况 感觉尽量别这么用 还是独立的写一条from...import...吧 不然就会产生依赖关系 以后如果有了bug可能会有什么影响。。。。 |
6 buru 2013-07-09 16:55:09 +08:00 4楼正解 个人感觉独立写一条import比较好 |
7 siteshen 2013-07-11 01:08:30 +08:00 和 django 没啥关系。 from X import * imports the module X, and creates references in the current namespace to all public objects defined by that module (that is, everything that doesn’t have a name starting with “_”). |