¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
Trying to make an app with independent data from one file.
Trying to make an app which gets data from a file and then use the data independently, help.
1 Respuesta
+ 4
It depends where your file is.
if it is local :
reader = open(pathOfYourFile)
listOfLines = reader. readlines()
if it is in the web:
pip3 install requests
import requests
req = requests.get(url)
content = req. text