- The Python Workshop
- Andrew Bird Dr Lau Cher Han Mario Corchero Jiménez Graham Lee Corey Wade
- 255字
- 2021-06-11 12:51:30
Introduction
Our experience with computers is a machine with a huge volume of carefully organized logic. No one piece of this logic is necessarily complex or can capture what drives the result. Rather, the entire system is organized such that it comes together to provide the output you expect.
In previous chapters, you focused on the basic Python idioms and data types. In this chapter, you will begin exploring more abstract concepts regarding how knowledge is formalized through logic in Python. You will explore a few fundamental algorithms that are used for solving typical problems in computer science, along with some simple logic.
For example, consider the problem of sorting a list of integers. Supermarkets use sorting techniques to sort through their customers to get an insight into the sales an individual customer provides. You may be surprised at the theoretical complexity behind writing such an algorithm in an efficient manner.
In this chapter, you will also learn about a few of the paradigms in Python for expressing our code in a concise but readable way. You will discuss the habits of a good programmer, and how to make sure you write code that is maintainable and does not repeat itself. In doing so, you can ensure yourself against needing to rework your code unnecessarily, as requirements change constantly in the IT world.
This chapter begins by moving away from running code in the Python shell and toward Python scripts and modules. This will allow us more flexibility to write clear, reusable, and powerful code.
- 過程控制工程及仿真
- Visual FoxPro 6.0數據庫與程序設計
- 機器學習與大數據技術
- 大型數據庫管理系統技術、應用與實例分析:SQL Server 2005
- 基于ARM 32位高速嵌入式微控制器
- 3D Printing for Architects with MakerBot
- Splunk Operational Intelligence Cookbook
- 菜鳥起飛系統安裝與重裝
- Web編程基礎
- 生成對抗網絡項目實戰
- MongoDB 4 Quick Start Guide
- Puppet 3 Beginner’s Guide
- Unreal Development Kit Game Design Cookbook
- 簡明學中文版Flash動畫制作
- 分布式Java應用