|
所在平台: Coursera |
课程主页: https://www.coursera.org/learn/python-scripting-intro
课程评论:没有评论
课程名称:DevOps的Python脚本基础 课程概述:本课程是为准程序员准备的一系列课程中的第一门。课程重点介绍了过程程序设计的五个主要概念:用户输入、控制台输出、变量声明与赋值、决策分支和迭代。通过实验室练习,学员能够将课堂所学应用于简单的计算机程序,从而加深对课程内容的理解。 课程大纲: 1. **控制台输入与输出**:本模块将让学员动手编码,学习如何使用IDLE开发代码及通过命令行编译代码。Python脚本可以在Windows、Mac OS或Linux上编写,初步程序关注从键盘读取输入并将结果输出到控制台。 2. **数据类型**:在第二模块中,将探索计算机在程序执行期间如何存储数据,包括整型、浮点型、布尔值和字符串。同时,学员将了解如何在不同类型的变量之间进行转换,以及变量的生存时间和可见性。 3. **决策分支**:第三模块将教授如何根据测试结果改变程序的执行流程。学员将学习如何使用if语句进行单一测试,使用else子句进行多重测试,最后用case语句作为程序流程的另一种表达方式。 4. **迭代**:在第四模块中,学员将学习如何通过循环重复执行代码。将从固定次数的循环开始,接着编写持续条件为真的循环,并探讨如何立即中断循环或跳回测试条件的流。 通过这门课程,学员将打下扎实的Python编程基础,为未来的DevOps角色做好准备。
Name:Console Input and Output
Description:In this module, we roll up our sleeves and start coding! We will learn to use both IDLE to develop code and also to compile code from the command line. The Python scripts can be written on a Windows, Mac OS or Linux machine and I will show you how to do so. Our first programs will focus on reading input from the keyboard and outputting the results of the program to the console output.
Name:Data Types
Description:In the second module of this course, we will look at how computers store data during the execution of a program. We will look at storing whole numbers, decimal numbers, boolean values and strings. We will explore how you can convert between different types of variables. Lastly, we will look at how long a variable stays in existence and when it is visible to the pieces of the code.
Name:Decision Branching
Description:In the third module of this course, we will learn how to change the flow of a program’s executionSometimesr based on a test. We will look at single tests utilizing if statements in our code. We follow up with multiple tests with the addition of the else clause. Lastly, we look at the case statement as an alternative expression of the flow of the program.
Name:Iteration
Description:In the fourth module of this course, we learn how to change the flow of our programs by repeating code iteratively. We will start with a look at loops that repeat a fixed number of times. We will follow up with writing loops that continue while a test is positive. Lastly, we will look at how we can modify the flow to immediately break from a loop or jump back to the test condition.
This course is the first course in a series that aims to prepare you for a role working as a programmer. In this course, you will be introduced to the five main concepts in procedural programming: user input, console output, variable declaration and assignment, decision branching and iteration. Labs will allow you to apply the material in the lectures in simple computer programs designed to re-enforce the material in the lesson.