configuration.py 文件源码

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

项目:azure-cli-shell 作者: Azure 项目源码 文件源码
def ask_user_for_telemetry():
    """ asks the user for if we can collect telemetry """
    answer = " "
    while answer.lower() != 'yes' and answer.lower() != 'no':
        answer = prompt(u'\nDo you agree to sending telemetry (yes/no)? Default answer is yes: ')

        if answer == '':
            answer = 'yes'

    return answer
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号