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

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.

主站蜘蛛池模板: 芜湖市| 姜堰市| 金塔县| 灵武市| 沂源县| 正蓝旗| 望谟县| 包头市| 都江堰市| 台江县| 大兴区| 肇东市| 黄龙县| 连南| 阳新县| 甘孜县| 同心县| 无为县| 宜兰市| 新邵县| 永新县| 海宁市| 囊谦县| 昌乐县| 汉寿县| 桑日县| 甘德县| 方山县| 深圳市| 中阳县| 淅川县| 沙雅县| 额尔古纳市| 平顺县| 苗栗市| 汉川市| 南平市| 北碚区| 天台县| 长治县| 江永县|