-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex10.py
More file actions
37 lines (32 loc) · 892 Bytes
/
ex10.py
File metadata and controls
37 lines (32 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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* Fishies
\t* Catnip\n\t* Grass
"""
print tabby_cat
print persian_cat
print backslash_cat
print fat_cat
# Escape Sequences
# \\ = Backslash
# \'' = Single-quote
# \"" = Double-quote
# \a = ASCII bell (BEL)
# \b = ASCII backspace (BS)
# \f = ASCII formfeed (FF)
# \n = ASCII linefeed (LF)
# \N{name} = Character named name in the unicode database (unicode only)
# \r ASCII = Carriage Retrun (CR)
# \t ASCII = Horizontal Tab (TAB)
# \uxxxx = Character with 16-bit hex value xxxx (unicode only)
# \ Uxxxxxxxx = Character with 32-bit hex value xxxxxxxx (unicode only)
# \v = ASCII vertical tab (VT)
# \ooo = Character with octal value ooo
# \xhh = Character with hex value hh
while True:
for i in ["/","-","|","\\","|"]:
print "%s\r" % i,