步骤1:基础我们首先学习Python的基础知识——变量、数据类型和操作符seo从入门到精通。还要学习循环和决策制定等概念:
Python VariablesPython Variable ScopeData Types in PythonPython OperatorsBitwise OperatorsComparison OperatorsOperator PrecedenceTernary OperatorsPython Decision MakingSwitch-case in PythonLoops in PythonNumbers with PythonPython StringsString Formatters and Escape SequencesString Functions and OperationsThe repr() Function
步骤2:数据结构了解像列表和元组这样的数据结构以及对它们执行的操作seo从入门到精通。还要了解其他数据结构,如字典和集合。
Python ListsList ComprehensionThe array ModulePython TuplesThe zip() FunctionTuples vs ListsSlicing in PythonBinary Sequence Types- bytes, bytearray, memoryviewDictionaries in PythonSets in PythonBooleans in Python
步骤3:函数式编程接下来seo从入门到精通,学习使用函数参数和lambda表达式等概念进行函数编程。另外,看看一些重要的内置函数。最后,学习decorator、closure和itertools。
Functions in PythonLambda ExpressionsFunction ArgumentsFunction RecursionBuilt-in Functionsrange()eval()exec()Decorators in PythonClosure in PythonWorking with itertools
步骤4:模块和包接下来是学习如何创建模块和包,并实践一些重要的模块和包。然后比较包和模块。
ModulesCounterDefaultdictOrderedDictnamedtupleNumeric Modules-math,decimal, randomsysGenerating Random NumbersPackagespip and PyPIModules vs Packages
步骤5:进阶Python是时候深入挖掘Python了!此步骤将带您了解更高级的概念,如正则表达式、日期和时间以及调试。
Regular Expressions with PythonMultithreading in PythonWorking with Date and TimeNamespace and ScopeVirtual Environments and PackagesThe datetime Module - Part IThe datetime Module - Part IIThe calendar ModuleThe Python Debugger (pdb)CGI Programming with PythonUnderstanding urllibTerminologies in PythonWhat's new in Python 3.7?Deep Copy vs Shallow CopyAssert Statements in PythonPretty-Printing with pprint
步骤6:面向对象编程我们现在开始讨论面向对象编程。我们讨论类、方法和对象。然后,我们尝试着手进行继承和操作符重载。最后,我们讨论一些概念,如生成器、迭代器和属性。
Methods in PythonMethods vs FunctionsMagic (Dunder) MethodsClasses in PythonAbstract classConcrete classPython ObjectsInheritance in PythonMultiple InheritancePython Operator OverloadingGenerators in PythonIterators in PythonGenerators vs IteratorsSerialization with pickleThe property Decorator
步骤7:文件处理现在探索其他概念,如文件处理。这个模块教你如何在OS和shutil模块的帮助下操作文件。您还将学习如何使用Python复制、重命名和压缩文件。
Reading and Writing FilesManaging Directories and FilesThe OS ModuleThe shutil ModuleCopying Files with PythonRenaming Files with PythonZipping Files with Python步骤8:异常处理现在学习异常处理和unittest
Errors and ExceptionsException HandlingTesting with unittest
步骤9:重要的包有了这样强大的库,就有可能培养出像Python这样的工具的真正功能。
Python LibrariesNumPySciPypandasVisualizing with matplotlibPyQTPyGTKPyTorchAltairWeb Scraping with ScrapyData access mechanismsSpacypygametkinter步骤10:其他功能现在学习一些概念,如发送邮件、使用Python访问数据库、日志和多过程。
XML ProcessingSending Mail with PythonNetworkingProcessing ImagesGUI ProgrammingForensicsExtensions to PythonToolsAccessing the DatabaseLogging with PythonMultiprocessing