练习10 转义符号

tabby_cat = "\t I'm tabbed in."
persian_cat = "I'm split\n on a line."
backslash_cat = "I'm \ a \ cat."

fat_cat = '''
I'll do a list:
\t* Cat food
\t* Fishies
\t* Catnip\n\t* Grass
'''

print tabby_cat
print persian_cat
print backslash_cat
print fat_cat

你可能感兴趣的:(练习10 转义符号)