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

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.

主站蜘蛛池模板: 陇川县| 余姚市| 江永县| 瑞丽市| 甘洛县| 治县。| 峨边| 永平县| 嫩江县| 东乡族自治县| 玉门市| 紫金县| 镇江市| 甘洛县| 娱乐| 海宁市| 永顺县| 共和县| 平阳县| 石渠县| 太仆寺旗| 大丰市| 孝昌县| 武义县| 双牌县| 三穗县| 综艺| 泰兴市| 西乌珠穆沁旗| 同德县| 西和县| 滦平县| 嘉善县| 吕梁市| 南投县| 宜良县| 凤台县| 长子县| 涞水县| 融水| 姚安县|