utils.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:warriorframework 作者: warriorframework 项目源码 文件源码
def check_installed_python_version(logfile, print_log_name):
    """ Returns version of python that Warrior is running on.

    :Arguments:

    1. print_log_name (str) = Name of the print_log file
    2. logfile (file object) = Contains the file object for the
    console_log file. This file object is the 'opened' console_log
    file with mode set to 'a'

    :Returns:

    str = python version

    """
    print_info("The current python version installed is: " +
               platform.python_version(), logfile, print_log_name)
    return platform.python_version()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号