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

Indentation

If you come from a background of a language such as Java, C, or C++, you might be familiar with the concept of grouping logically connected statements using curly braces. This is not the case, however, in Python. Instead, the logically connected statements, including classes, functions, conditional statements, and loops, are grouped using indentation. Indentation keeps the code clean and easy to read. We shall explore this in more detail in the coming sections. For now, however, let's say goodbye to braces. I recommend that you use tabs for indentation, as typing an equal number of spaces in every line becomes very time-consuming.

主站蜘蛛池模板: 洛阳市| 青阳县| 陵水| 东城区| 阿城市| 商河县| 彰化市| 九龙城区| 临城县| 西城区| 万盛区| 秭归县| 清新县| 武鸣县| 霍林郭勒市| 巴彦县| 邢台县| 黄大仙区| 昭平县| 内黄县| 顺昌县| 安平县| 昭苏县| 鹿邑县| 修武县| 景谷| 庄河市| 西吉县| 余江县| 南木林县| 揭东县| 祁阳县| 长顺县| 清涧县| 合肥市| 谷城县| 蓬溪县| 舟曲县| 陵川县| 穆棱市| 邵阳县|