Python Language Basics
摘要
The purpose of this chapter is to give a basic feeling for the syntax, semantics, capabilities, and philosophy of the Python language. In this chapter, we’ll introduce the basics of the Python programming language basics. We will begin by looking at Python’s simplest built-in data types and the ways in which basic arithmetic is performed, and special string formats specifiers are used. Computers process data values that represent information, and these values can be of different types. In fact, each value in a Python program is of a specific data type. The data type determines how the data is represented in the computer and what operations can be performed on that data. These data types can be manipulated using language operators, built-in functions, library functions, or a data type’s own methods. Python supports the following primitive data types.