Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

como leer lineas de un archivo de texto en python

f = open("archivo.txt", "r")
for linea in f:
    print(linea)
f.close()
Comment

PREVIOUS NEXT
Code Example
Python :: python insertion sort 
Python :: change dataframe value by index 
Python :: render template in django 
Python :: how to skip next 5 iteration in python 
Python :: np array to tuple 
Python :: how to encode hexadecimal python 
Python :: file searching in python 
Python :: train test split 
Python :: 13 pseudo random numbers between 0 to 3 python 
Python :: get current data with python 
Python :: Add Border to input Pysimplegui 
Python :: python color input 
Python :: rename columns 
Python :: last executed query in flask api 
Python :: python array from 1 to n 
Python :: django app 
Python :: make a script run itself again python 
Python :: feature importance plot 
Python :: Converting objects into integers 
Python :: matplotlib to pdf 
Python :: turn false true column into 0 1 pandas 
Python :: tensor to int python 
Python :: discord.py how to print audit logs 
Python :: Sum values of column based on the unique values of another column 
Python :: detect operating system using python 
Python :: library for converting text into image in python 
Python :: get variable name python 
Python :: How to print a groupby object 
Python :: python loop append to dictionary 
Python :: python add string and int 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =