¿Saben cómo saber la dirección de un archivo que yo cree? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answers
+ 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