那是什么?
- 输入:
# -- coding: utf-8 --
tabby_cat = "\tI'm tabbed in." # \t 缩进
peraian_cat = "I'm split\non 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
-
运行:
-
转义序列
- 神奇的代码
while True:
for i in ["/","-","|","\\","|"]:
print "%s\r" % i,
下面一直在转