LoginSignup
0
0

More than 1 year has passed since last update.

python csvの中身を取り出すモジュール -csv-

Posted at

csvの中身を簡単に取り出す

import csv
f = open("商品データ.csv", encoding="utf-8") 
cr = csv.reader(f) #readerオブジェクトを用意する
dat = list(cr)
f.close()
print(dat)

スクリーンショット 2022-07-12 0.24.31.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0