GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python_reference/useful_scripts/lines_to_csv.py at master · ritikkumar55/python_reference Expand file tree/ Copy pathlines_to_csv.pyMore file actions 21 lines (17 loc) · 320 Bytes / Copy pathlines_to_csv.pyFile metadata and controls21 lines (17 loc) · 320 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 # Sebastian Raschka 2014 # converts a 1-col input file into csv file # # Example input: # 123 # 245 # 453 # # Example output: # 123,245,453 # out_file = open('new.csv', 'w') with open('in.txt', 'r') as in_file: for line in in_file: line = line.strip() out_file.write(line + ',') out_file.close() |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |