zoukankan      html  css  js  c++  java
  • 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

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

  • 相关阅读:
    linux内核中GNU C和标准C的区别
    linux内核中GNU C和标准C的区别
    Getting start with dbus in systemd (02)
    Getting start with dbus in systemd (01)
    Getting start with dbus in systemd (03)
    物理内存相关的三个数据结构
    数据类型对应字节数(32位,64位 int 占字节数)
    Linux kernel 内存
    共模电感的原理以及使用情况
    [原创]DC-DC输出端加电压会烧毁
  • 原文地址:https://www.cnblogs.com/wtang/p/7373621.html
Copyright © 2011-2022 走看看