• python常用命令(持续) | Commonly used Python command list (con't)


    -----------------------------------------------------------------------------------------------------

    列出当前python环境下的所有modules

    在python shell/prompt.环境下

    help('modules')

    ----------------------------------------------------------------------------------------------------

    -----------------------------------------------------------------------------------------------------

    查看某一个module的具体版本,已pandas为例

    在python shell/prompt.环境下

    import pandas
    print(pandas.__version__)

    在python中每一个类都有类似__version__的静态属性的

    ----------------------------------------------------------------------------------------------------

    English Version

    -----------------------------------------------------------------------------------------------------

    List all modules (packages) that installed in current Python env

    Go to CMD, key in Python or iPython, open Python / iPython interface, then key in below 

    help('modules')

    ----------------------------------------------------------------------------------------------------

    -----------------------------------------------------------------------------------------------------

    Check version info of a module. 

    Go to CMD, key in Python or iPython, open Python / iPython interface, then key in below 

    import pandas
    print(pandas.__version__)

    There is several static attribute such as __version__ in every python class

    ----------------------------------------------------------------------------------------------------

  • 相关阅读:
    day7 反射
    day7 面向对象进阶
    day7 面向对象class()学习
    day6 subprocess模块、logging模块
    day6 hashlib模块
    day6 ConfigParser模块 yaml模块
    day6 xml文件格式的处理
    day6 shelve模块
    day6 SYS模块
    Servlet的学习之Response响应对象(1)
  • 原文地址:https://www.cnblogs.com/wtang/p/7373621.html
Copyright © 2020-2023  润新知