官术网_书友最值得收藏!

Indentation

Most other programming languages have explicit symbols that indicate the beginning of a block and the end of a block. However, it's a common practice in all of those languages to indent blocks so that humans find the code easier to read. In fact, failure to do so is often taken as a sign that a programmer is an amateur. This means that the block structure in most languages is actually represented in two different ways: the symbols and the indentation. By incorporating indentation into syntax without the need for explicit symbols, Python both removes this duplication and ensures that the code is readable.

With that, we've come to the end of this section. In the next section, we'll look at some of Python's built-in data structures and the data processing syntax.

主站蜘蛛池模板: 永年县| 屯门区| 霸州市| 东阳市| 徐汇区| 襄垣县| 萨嘎县| 公安县| 龙山县| 兴安盟| 朝阳区| 汝城县| 齐河县| 海南省| 六安市| 奎屯市| 遂溪县| 芜湖县| 称多县| 铁岭县| 中西区| 锡林郭勒盟| 时尚| 昌图县| 平潭县| 龙游县| 即墨市| 靖州| 乐昌市| 永登县| 通河县| 祁门县| 南丰县| 昭通市| 陕西省| 宜丰县| 昆山市| 浙江省| 临海市| 哈尔滨市| 贵溪市|