ĀæSaben cĆ³mo saber la direcciĆ³n de un archivo que yo cree? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 7

ĀæSaben cĆ³mo saber la direcciĆ³n de un archivo que yo cree?

Do you know how to know the address of files that I believe?

10th Sep 2021, 1:29 AM
CGO!
CGO! - avatar
6 Respostas
+ 1
Para saber en q direcciĆ³n te encuentras puedes probar import os os.getcwd() Imprime el camino en el q estĆ”s corriendo el intĆ©rprete Para cambiar a otro path lo puedes hacer con os.chdir(path) path: la direcciĆ³n a la q quieres cambiar
10th Sep 2021, 1:59 AM
Osvaldo Delgado GonzƔlez
Osvaldo Delgado GonzƔlez - avatar
+ 4
your question is is not clear please give some information about your problem so that community will help you. if you are asking path of a file inside of your hard disk then you must see 'os' module
10th Sep 2021, 1:51 AM
Ratnapal Shende
Ratnapal Shende - avatar
+ 3
A que te refieres con direcciĆ³n hermano?
10th Sep 2021, 1:33 AM
Cmurio
Cmurio - avatar
+ 3
10th Sep 2021, 1:09 PM
CGO!
CGO! - avatar
+ 2
Pariket JESUS EDUARDO CANUL KOYOC Directory on I belive file
10th Sep 2021, 1:34 AM
CGO!
CGO! - avatar
+ 1
Ratnapal Shende Hmmmm, Thanks, i think is with os
10th Sep 2021, 1:07 PM
CGO!
CGO! - avatar