那是什么?
- 輸入:
# -- 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,
下面一直在轉