Basic Python 49

open, readlines, collections, split, read, seek, writer, writerow, close, mode='at'

Open the file. 1. Open the exist file. open('file path', 'open mode') It returns the objects which has file content. The available modes are f=open('/Users/joohyunyoon/Downloads/Book2.xlsx', 'r') f >> ['\ufeffNAVER\n', 'Hyundai\n', 'LG\n', 'Kia'] A newline character (\n) is left at the end of the string, and it needed to be ommitted(using strip()). for line in lines: line = line.strip() collecti..

Basic Python 2021.05.06