python报错 TypeError: string indices must be integers
2021-07-17 13:06
标签:rip 类型 == color ring split inf style class python报错 TypeError: string indices must be integers 标签:rip 类型 == color ring split inf style class 原文地址:https://www.cnblogs.com/Mr-wangxd/p/9531770.html if ‘like‘ in condition:
cond_str1 = condition.split(‘like‘)[0].strip()
cond_str2 = condition.split(‘like‘)[1].strip()
print(staff_info)
ret = filter(lambda x:cond_str2 in str(x[cond_str1]), staff_info) # 这里字典写错
上一篇:用半监督算法做文本分类
下一篇:js判断浏览器类型以及语言
文章标题:python报错 TypeError: string indices must be integers
文章链接:http://soscw.com/index.php/essay/106224.html