1 2 3 4 5 6 7 8 9 10 11 | # # µû¶óÇÏ¸ç ¹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020) # 12.4 CSV µ¥ÀÌÅÍÀÇ ³»¿ëÀ» ÀÐ¾î º¸ÀÚ, 309ÂÊ # import csv f = open('d:/data/weather.csv') # CSV ÆÄÀÏÀ» ¿¾î¼ f¿¡ ÀúÀåÇÑ´Ù. data = csv.reader(f) # reader() ÇÔ¼ö¸¦ ÀÌ¿ëÇÏ¿© Àд´Ù. for row in data: print(row) f.close() | cs |