Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
readlines replace \n
Jon Egerton
Programming language:
Whatever
2021-08-28 23:27:54
0
Q:
readlines replace \n
Nagora
Code:
Whatever
2021-08-09 10:26:38
with open(filename) as f: mylist = f.read().splitlines()
0
Tags
replace
Related
replace hashes space vim
r substitute string characters until first :
replace hashes space vi
r substitute string character until :
New to Communities?
Join the community