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

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.

主站蜘蛛池模板: 普定县| 凌源市| 吉安县| 怀远县| 共和县| 安庆市| 翁源县| 财经| 凤城市| 铜梁县| 邮箱| 罗源县| 礼泉县| 万荣县| 漳浦县| 河津市| 磴口县| 常州市| 广丰县| 揭阳市| 紫云| 家居| 广西| 三门峡市| 文昌市| 台东市| 渭南市| 东阿县| 确山县| 洛宁县| 洪湖市| 黄浦区| 新乐市| 连山| 图们市| 怀安县| 湟中县| 诸暨市| 贞丰县| 双峰县| 五大连池市|