代码如下:
点击查看代码
# -*-coding:utf-8- -*-
# 那是什么
tabby_cat = "\tI'm tabbed in."
persian_cat = "I'm split \non a line."
Backslash_cat = "I'm \\ a \\ cat."
fat_cat = """
I'll do a list:
\t* Cat food
\t* Cat food
\t* Fishies
\t* Catnip\n\t* Grass
"""
print tabby_cat
print persian_cat
print Backslash_cat
print fat_cat
print "\a" # 响铃符
print "\b" # 退格符
print "\f" # 进纸符
执行结果: