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

目录结构如此:

main.py:

from new1 import * 

fun1()

__init__.py

from app.py import * 

app.py中定义了 fun1方法

出现的问题:

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

巴扎黑
巴扎黑

Antworte allen(1)
PHPzhong

__init__.py:

from new1.app import *
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!