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

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

  • 相关阅读:
    nodejs 获取客户端 ip 地址
    如何使用 nvm-windows 管理 nodejs 版本
    redis 环境搭建
    利用 ssh 传输文件
    如何在 Centos7 中安装 gcc
    如何在 Centos7 中安装 nginx
    django迁移model到别的app中
    ssl生成证书
    pip安装mysql报错 ld: library not found for -lssl
    mac重置蓝牙模块
  • 原文地址:https://www.cnblogs.com/wtang/p/7373621.html
Copyright © 2011-2022 走看看