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 TLRK XLиG KMɾT XLES XɨG
RLERL GLɹRK Zɧ XLYϼR XMЖR LR 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