Line Separator, file path name Separator

Line Separator, file path name Separator


import os# ww w.  j a  va2s  . co m

print os.linesep      # String used to separate lines in a file
print os.sep        # String used to separate file pathname components
print os.pathsep    # String used to delimit a set of file pathnames
print os.extsep       # Extension Separator





















Home »
  Python »
    Advanced Features »




Exception Handling
File
Module