찾다

 >  Q&A  >  본문

PYTHON 根目录主程序导入子目录下的所有模块, 提示模块找不到

目录结构如此:

main.py:

from new1 import * 

fun1()

__init__.py

from app.py import * 

app.py中定义了 fun1方法

出现的问题:

我是那里写错了吗, python3.5

巴扎黑巴扎黑2899일 전878

모든 응답(1)나는 대답할 것이다

  • PHPz

    PHPz2017-04-18 10:20:54

    __init__.py:

    으아아아

    회신하다
    0
  • 취소회신하다