sh_21_遍歷字典的列表

  sh_21_遍歷字典的列表html students = [ {"name": "阿土"}, {"name": "小美"} ] # 在學員列表中搜索指定的姓名 find_name = "張三" for stu_dict in students: print(stu_dict) if stu_dict["name"] == find_name:
相關文章
相關標籤/搜索