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

为什么 pycharm 的 dir()函数运行没有结果显示?是设置问题吗?

  •  
  •   fun7595 · Jul 5, 2018 · 2788 views
    This topic created in 3003 days ago, the information mentioned may be changed or developed.

    新手小白学习到 dir ()函数这里,在 pycharm 里运行,没有返回模块名称,哪位小伙伴告知下原因?

    import sys

    dir(sys)

    运行结果窗口只显示 :Process finished with exit code 0

    xuegj1010
        1
    xuegj1010  
       Jul 5, 2018   ❤️ 1
    print(dir(sys))
    fun7595
        2
    fun7595  
    OP
       Jul 5, 2018
    @xuegj1010 谢谢你。突然觉得自己问了一个非常低级的问题 😰
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2484 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 06:55 · PVG 14:55 · LAX 23:55 · JFK 02:55
    ♥ Do have faith in what you're doing.