V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2018-07-05 20:20:34 +08:00 · 2133 次点击
    这是一个创建于 2093 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    import sys

    dir(sys)

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

    xuegj1010
        1
    xuegj1010  
       2018-07-05 21:16:41 +08:00   ❤️ 1
    print(dir(sys))
    fun7595
        2
    fun7595  
    OP
       2018-07-05 23:02:13 +08:00
    @xuegj1010 谢谢你。突然觉得自己问了一个非常低级的问题 😰
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4074 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 05:17 · PVG 13:17 · LAX 22:17 · JFK 01:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.