字符串True,False转换成布尔值True,False不能用bool函数,因为得到的结果都是布尔值True。
可以写个if判断:
if ss == 'True': ss = True elif ss == 'False': ss = False