Mercurial > hg > python
view csvtotsv.py @ 28:bb46148fab91
second half of old /c/Drive_F/merged_d/src/python/distr.py, modified to do coin flip experiment
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Wed, 28 Jul 2021 17:54:52 +0100 |
parents | e07789816ca5 |
children |
line wrap: on
line source
#!/usr/bin/python3 import csv,sys with open(sys.argv[1],newline='') as f: r=csv.reader(f) for l in r: print('\t'.join(s.replace("\n","") for s in l))