zoukankan      html  css  js  c++  java
  • python中获取python版本号的方法【转】

    1
    2
    3
    4
    #!/usr/bin/python 
    # 第1种方法
    import platform 
    print(platform.python_version())
    1
    2
    3
    >>> import platform
    >>> print(platform.python_version())
    3.6.3
    1
    2
    3
    4
    # 第2种方法
    import sys 
    print(sys.version)
    print(sys.version_info)
    来自:https://blog.csdn.net/niepangu/article/details/52453366
    1
    2
    3
    4
    5
    6
    7
    >>> import sys
    >>> print(sys.version)
    3.6.3 (v3.6.3:2c5fed8Oct  3 201718:11:49) [MSC v.1900 64 bit (AMD64)]
    >>> print(sys.version_info)
    sys.version_info(major=3, minor=6, micro=3, releaselevel='final', serial=0)
    >>> print(sys.version_info.major)
    3
  • 相关阅读:
    乱码问题
    play之路由 routes
    delphi之http通讯
    delphi之socket通讯
    Delphi之ComboBox
    delphi 常用函数
    字节
    EXCEPT
    V_REPORT_AOC_FUEL]
    相同表结构不同记录
  • 原文地址:https://www.cnblogs.com/gisoracle/p/12298927.html
Copyright © 2011-2022 走看看