Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
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 ответ
+ 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