Page 50 - Python Cơ Bản
P. 50

os.removedirs(path)   \ɹE QШX чšЬRK HϺR  Gɹ


                  VIGYVWMZI




          <IQ XLɱQ XϰM LXXTW   HSGW T]XLSR SVK   PMFVEV] SW LXQP






               1SHYPI os.path




          1SHYPI  os.path  LЦ XVв GɨG TLš˜RK XLиG KMɾT XLES XɨG


          RLERL GLɹRK Zɧ XLYϼR XMЖR L˜R XVɱR чšЬRK HϺR




                   os.path.exists(path)   OMВQ XVE   чšЬRK HϺR Gɹ XТR



                  XϰM LE] OLɺRK


                   os.path.getsize(path)   Pϴ] JMPI WM^I  F]XI


                   os.path.isfile(path)   OMВQ XVE \IQ Gɹ TLϲM Pɧ QШX



                  JMPI XLɺRK XLšЬRK


                   os.path.isdir(path)   OMВQ XVE \IQ Gɹ TLϲM Pɧ QШX


                  XLš QдG


                   os.path.dirname(path)   XVϲ ZА XɱR XLš QдG GжE TEXL


                   os.path.getatime(path)   XVϲ ZА XLЬM KMER XVY] GϼT



                  QЪM RLϴX
   45   46   47   48   49   50   51   52   53   54   55