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

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

  • 相关阅读:
    程序员7种武器成
    FastReport 使用技巧篇
    FastReport调用Delphi中的自定义函数(人民币大写金额)mtm
    FastReport里面正确调用函数的方法
    FastReport报表设计
    FastReport报表对象介绍一:“Text”对象
    设定报表变量的CharSpacing
    FastReport问题整理(技巧)
    FASTREPORT 整理 (mtm)
    fastReport 运行时设计报表 (mtm)
  • 原文地址:https://www.cnblogs.com/wtang/p/7373621.html
Copyright © 2011-2022 走看看