ã½ã¼ã¹ã³ã¼ã #!/usr/bin/python # coding: UTF-8 # CSVãã¡ã¤ã«ã®èªã¿è¾¼ã¿ import csv filename = "table01.csv" csvfile = open(filename) print csvfile for row in csv.reader(csvfile): print row # 1è¡ã®ãªã¹ã for elem in row: print elem, # è¡ã®ä¸ã®è¦ç´ print csvfile.close() print csvfile CSVãã¡ã¤ã« (table01.csv) (çªå·,åå) 1,aki 2,hiro 3,norika 4,kaede å®è¡çµæ <open file 'table01.csv', mode 'r' at 0x01BECCC8> ['1', 'aki'] 1 aki ['2', 'hir
{{#tags}}- {{label}}
{{/tags}}