推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
zcsnbb
V2EX  ›  Python

我的目录结构是这样的 每个文件夹下都是有__init__的 没有写出来 我想在 insert 中导入 ccxt 应该如何写

  •  
  •   zcsnbb · Oct 26, 2018 · 1826 views
    This topic created in 2781 days ago, the information mentioned may be changed or developed.

    我写的是 from hunter.trade import ccxt 但是运行时提示我 no moudle named hunter

    2 replies    2018-10-29 10:53:59 +08:00
    zh826256645
        1
    zh826256645  
       Oct 27, 2018
    首先, 你得确定你的运行文件和 hunter 是不是在同级目录下,或者 hunter 在不在你的 python 库中
    如果不满足上述条件, 就会出现 no moudle named hunter
    解决方法参考: https://blog.csdn.net/pwc1996/article/details/52577148
    zcsnbb
        2
    zcsnbb  
    OP
       Oct 29, 2018
    了解了 python 的 import 中的坑
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   907 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:30 · PVG 06:30 · LAX 15:30 · JFK 18:30
    ♥ Do have faith in what you're doing.