推荐学习书目
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
larkifly
V2EX  ›  Python

from sh import ls,看源码时,没有看到关于 ls 相关函数或者类的实现,但是却不会报错,请问这是怎么实现的?

  •  
  •   larkifly · Jan 27, 2015 · 2572 views
    This topic created in 4201 days ago, the information mentioned may be changed or developed.
    如题,很好奇

    搞定了,动态导入
    1 replies    2015-01-27 11:01:40 +08:00
    virusdefender
        1
    virusdefender  
       Jan 27, 2015
    肯定有的 你看看 sh里面是不是有 from ... import *之类的,估计隐藏在*里面了~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1126 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 18:15 · PVG 02:15 · LAX 11:15 · JFK 14:15
    ♥ Do have faith in what you're doing.