如果list中既包含字符串,又包含整数,由于非字符串类型没有lower()方法,所以列表生成式会报错:

NoSuchKey

猜你喜欢

转载自www.cnblogs.com/90zhang/p/9208559.html