PYTHON 根目录主程序导入子目录下的所有模块, 提示模块找不到
巴扎黑
巴扎黑 2017-04-18 10:18:54
0
1
752

目录结构如此:

main.py:

from new1 import * 

fun1()

__init__.py

from app.py import * 

app.py中定义了 fun1方法

出现的问题:

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

巴扎黑
巴扎黑

répondre à tous(1)
PHPzhong

__init__.py :

from new1.app import *
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!