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

Escape sequence in Python

The escape sequence is used to insert the tab, the newline, the backspace, and other special characters into your code. They give you greater control and flexibility to format your statements and code:

print 'a' 
print 'tHermit'
print "i know , they are 'great'"

The output is as follows:

C:pydev>python hello.py
Hermit
i know , they are 'great'

The preceding code executes with a beep sound. If you did not hear the beep sound, check your speakers.

主站蜘蛛池模板: 区。| 郧西县| 衡阳县| 古蔺县| 浦城县| 玉屏| 巴东县| 潜山县| 个旧市| 石台县| 通渭县| 济阳县| 天祝| 方城县| 静海县| 随州市| 景宁| 亳州市| 新宁县| 灵山县| 衡南县| 威信县| 丽江市| 嘉黎县| 会宁县| 法库县| 巢湖市| 抚州市| 岳阳市| 枣庄市| 稷山县| 饶阳县| 阿图什市| 梅河口市| 芷江| 甘南县| 敦化市| 盐山县| 廉江市| 上虞市| 苏尼特左旗|