python_lists
This is an old revision of the document!
Table of Contents
dummy
tasks
read file as list of strings
fname = "foo.txt" with open(fname, "r") as fh: lines = [line.rstrip() for line in fh]
python_lists.1682956257.txt.gz · Last modified: 2023/05/01 15:50 by admin