sh_21_遍历字典的列表

  sh_21_遍历字典的列表html students = [ {"name": "阿土"}, {"name": "小美"} ] # 在学员列表中搜索指定的姓名 find_name = "张三" for stu_dict in students: print(stu_dict) if stu_dict["name"] == find_name:
相关文章
相关标签/搜索