Escape Codes
|
|
s = "e:\Beginner" s1 = "e:" "\" "Beginner" s2 = s1 + "\tst.py"
print "This is a DOS path:", s print "This is a DOS path:", s1 print "This is a DOS path:", s2
s3 = "I contain 'single' quotes"
print s3
s6 = "I containtttthreettttabs" s7 = "I contain atvtvertical tab" s8 = "I contain atatBELL, which you can hear"
print s6 print s7 print s8
s9 = "I contain a BACKbSPACE" s10 = "I contain a BACKKbSPACE AND a nNEWLINE and a rLINEFEED" s11 = "I ve got a FORMfFEED!"
print s9 print s10 print print s11
s12 = "If Python doesn't know what the escape coden" "means, it performs the identity operation! identity!" s13 = "But if you don't know what a code means, don't use it!"
print s12 print s13
|
|
|
|
|
Related Scripts with Example Source Code in same category :
-
-
|
|