Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

Episodio 31: Python moderno III, Pathlib, el camino a la felicidad

Path­lib es para crear / mod­i­ficar / ma­nip­u­lar path­s. O, co­mo decíamos antes os­.­path.join(crear, mod­i­fi­car, ma­nip­u­lar path­s) ... mas al­lá del chis­te, es muu­u­u­u­cho más leg­i­ble. Veamos un ejem­p­lo "re­al" de códi­go que veo segui­do y de­je­mos de us­ar os­.­path.

Path­lib: http­s://­doc­s.python.org/3/li­brary/­path­lib.html


Contents © 2000-2023 Roberto Alsina