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

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.

主站蜘蛛池模板: 拜城县| 清流县| 荔波县| 彝良县| 孟连| 琼海市| 枝江市| 正安县| 资溪县| 雷州市| 龙江县| 耒阳市| 巴林右旗| 微山县| 海口市| 汉川市| 东阳市| 保康县| 蕲春县| 方城县| 潮安县| 东丰县| 个旧市| 长治市| 南昌县| 赫章县| 皮山县| 永川市| 黔西县| 赣榆县| 谷城县| 新丰县| 贺州市| 玉田县| 扬中市| 满洲里市| 黄山市| 大关县| 青海省| 砀山县| 北宁市|