
完整的 PEP8 专业 Python 编码课程涵盖了 PEP 8 文档,该文档提供了有关如何编写 Python 代码的指南和最佳实践。PEP 8 的主要重点是提高 Python 代码的可读性和一致性。
PEP 8 的存在是为了提高 Python 代码的可读性。但为什么可读性如此重要?为什么编写可读代码是 Python 语言的指导原则之一?
正如 Guido van Rossum 所说,“阅读代码的频率远高于编写代码的频率。” 您可能会花费几分钟或一整天的时间来编写一段代码来处理用户身份验证。一旦你写了它,你就永远不会再写它了。但是你一定要再读一遍。那段代码可能仍然是您正在处理的项目的一部分。每次返回该文件时,您都必须记住该代码的作用以及编写它的原因,因此可读性很重要。
如果您是 Python 新手,可能很难记住一段代码在编写几天或几周后做了什么。如果你遵循 PEP 8,你可以确定你已经很好地命名了你的变量。你会知道你已经添加了足够多的空格,因此更容易在代码中遵循逻辑步骤。您还可以很好地注释您的代码。所有这一切将意味着您的代码更具可读性并且更容易返回。作为初学者,遵循 PEP 8 的规则可以让学习 Python 变得更加愉快。
如果您正在寻找开发工作,遵循 PEP 8 尤其重要。编写清晰易读的代码显示了专业性。它会告诉雇主您了解如何很好地构建代码。
如果您有更多编写 Python 代码的经验,那么您可能需要与其他人协作。在这里编写可读的代码至关重要。其他可能从未见过您或以前从未见过您的编码风格的人将不得不阅读和理解您的代码。拥有您遵循和认可的准则将使其他人更容易阅读您的代码。
在本课程结束时,您将能够
编写符合 PEP 8 的 Python 代码
了解 PEP 8 中列出的指南背后的原因
设置您的开发环境,以便您可以开始编写符合 PEP 8 的 Python 代码
遵循包、模块、对象、类变量等的正确命名约定。
在 Python 代码组件之间实现适当的空白
开发全面的专业 Python 项目
本课程适用于
希望提高编码效率的软件工程师 想要专业编码的
计算机科学专业的学生
任何希望学习 Python 和 PEP8 的人
Published 05/2022
MP4 | Video: h264, 1280×720 | Audio: AAC, 44.1 KHz, 2 Ch
Genre: eLearning | Language: English + srt | Duration: 34 lectures (4h 3m) | Size: 2.7 GB
Learn PEP8 guidelines and write your Python code professionally
What you’ll learn
Write Python code that conforms to PEP 8
Understand the reasoning behind the guidelines laid out in PEP 8
Set up your development environment so that you can start writing PEP 8 compliant Python code
Follow the correct naming conventions for packages, modules, objects, classes variables and more.
Implement the appropriate whitespacing between Python code components
Develop full scale professional Python projects
Learn the best clean code practices in Python
Requirements
Basic understanding of any programming language
Prior Python experience is not required
Desire to learn PEP 8 guidelines and write Clean Code
Description
The Complete PEP8 Professional Python Coding Course covers the PEP 8 document that provides guidelines and best practices on how to write Python code. The primary focus of PEP 8 is to improve the readability and consistency of Python code.
PEP 8 exists to improve the readability of Python code. But why is readability so important? Why is writing readable code one of the guiding principles of the Python language?
As Guido van Rossum said, “Code is read much more often than it is written.” You may spend a few minutes, or a whole day, writing a piece of code to process user authentication. Once you’ve written it, you’re never going to write it again. But you’ll definitely have to read it again. That piece of code might remain part of a project you’re working on. Every time you go back to that file, you’ll have to remember what that code does and why you wrote it, so readability matters.
If you’re new to Python, it can be difficult to remember what a piece of code does a few days, or weeks, after you wrote it. If you follow PEP 8, you can be sure that you’ve named your variables well. You’ll know that you’ve added enough whitespace so it’s easier to follow logical steps in your code. You’ll also have commented your code well. All this will mean your code is more readable and easier to come back to. As a beginner, following the rules of PEP 8 can make learning Python a much more pleasant task.
Following PEP 8 is particularly important if you’re looking for a development job. Writing clear, readable code shows professionalism. It’ll tell an employer that you understand how to structure your code well.
If you have more experience writing Python code, then you may need to collaborate with others. Writing readable code here is crucial. Other people, who may have never met you or seen your coding style before, will have to read and understand your code. Having guidelines that you follow and recognize will make it easier for others to read your code.
By the end of this course, you’ll be able to
Write Python code that conforms to PEP 8
Understand the reasoning behind the guidelines laid out in PEP 8
Set up your development environment so that you can start writing PEP 8 compliant Python code
Follow the correct naming conventions for packages, modules, objects, classes variables and more.
Implement the appropriate whitespacing between Python code components
Develop full scale professional Python projects
Who this course is for
Software Engineers that wish to improve their coding efficiency
Computer Science students that want to code professionally
Anyone with a desire to learn Python and PEP8

原创文章,作者:steven,如若转载,请注明出处:https://rr3d.cn/32732.html