📌  相关文章
📜  在python代码示例中将字典键值转换为小写

📅  最后修改于: 2022-03-11 14:46:18.225000             🧑  作者: Mango

代码示例3
my_dict = {'KEY1': "Hello", 'Key2': "World"} 
new_dict = dict((k, v.lower()) for k, v in my_dict .items()) 
print(new_dict)