Python字符串转bool函数

def str2bool(v):
    return v.lower() in ("yes","true","t","1")
原文地址:https://www.cnblogs.com/azureology/p/14434881.html