lists = [{"name": "xiaoming", "high": 187}, {“name”: "xiaohong", "high": 167}]
#列表里的每个字典都算一个整体,dictionary遍历每一个字典
for dictionary in lists:
#对每个字典按正常key-value赋值就可以啦
if lists["name"] == xiaoming:
lists["name"] = new_name
break
希望能对你有所帮助,如有疑问,欢迎评论,希望能与你一起讨论,当然也期待点个赞以示鼓励啦