Python 3: Deep Dive (Part 3 - Dictionaries, Sets, JSON)

所在平台: Udemy

课程主页: https://www.udemy.com/course/python-3-deep-dive-part-3/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:Python 3: 深度探索 (第三部分 - 字典、集合、JSON) 课程概述:此课程深入探讨Python字典的使用与实现。字典在Python中无处不在,类、模块、命名空间和集合等都是字典的表现形式。本课程主要内容包括: - 关联数组及其使用哈希表的实现方式 - 哈希函数及其在自定义类中的应用 - Python字典和集合的各种操作 - 特殊字典结构如OrderedDict及其与Python 3.6+ dict的关系 - Python对多重集合的实现,即Counter类 - ChainMap类的使用 - 如何通过继承UserDict类创建自定义字典 - 如何将字典序列化和反序列化为JSON - 自定义JSON反序列化中的模式使用 - 对一些有用库的简要介绍,如JSONSchema、PyYaml和Serpy ***先决条件***:请注意,这是一门相对高级的Python课程,需要对某些主题有较强的理解。在掌握Python基本知识(如循环、条件语句、异常处理、内置数据类型、创建类等)的基础上,您还需要深入理解以下主题: - 函数和函数式编程(递归、*args、**kwargs、zip、map、sorted、any、all等) - 匿名函数、闭包和装饰器(包括标准装饰器如@singledispatch、@wraps等) - 可迭代对象、迭代器、生成器和上下文管理器 - 命名元组 - 变量作用域和命名空间(全局、本地等) 此外,您还需要安装一些第三方库,并且需要对使用您选择的工具(如pip、conda等)进行此操作感到自信。最后,课程中的大部分代码使用免费的Jupyter Notebooks进行演示,因此您也需要具备相应的工具。

课程评论(0条)

课程详情

This course is an in-depth look at Python dictionaries.Dictionaries are ubiquitous in Python. Classes are essentially dictionaries, modules are dictionaries, namespaces are dictionaries, sets are dictionaries and many more. In this course we'll take an in-depth look at:associative arrays and how they can be implemented using hash mapshash functions and how we can leverage them for our own custom classesPython dictionaries and sets and the various operations we can perform with themspecialized dictionary structures such as OrderedDict and how it relates to the built-in Python3.6+ dictPython's implementation of multi-sets, the Counter classthe ChainMap classhow to create custom dictionaries by inheriting from the UserDict classhow to serialize and deserialize dictionaries to JSONthe use of schemas in custom JSON deserializationa brief introduction to some useful libraries such as JSONSchema, PyYaml and Serpy***** Prerequisites *****Please note that this is a relatively advanced Python course, and a strong knowledge of some topics in Python is required. Beyond the basics of Python (loops, conditional statements, exception handling, built-in data types, creating classes, etc), you should also have an in-depth understanding of the following topics:functions and functional programming (recursion, *args, **kwargs, zip, map, sorted, any, all, etc)lambdas, closures and decorators (including standard decorators such as @singledispatch, @wraps, etc)iterables, iterators, generators and context managersnamed tuplesvariable scopes and namespaces (globals, locals, etc)For this course you will also need to install some 3rd party libraries, so you need to be comfortable with doing this using the tool of your choice (e.g. pip, conda, etc)Finally, most of the code in this course is illustrated using the freely available Jupyter Notebooks, so you will need that as well.

课程标签

0人关注该课程

主题相关的课程