User Tools

Site Tools


python_lists

This is an old revision of the document!


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.1683300216.txt.gz · Last modified: 2023/05/05 15:23 by admin