0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【python】csv読み込み

Posted at
import csv
import tkinter as tk

with open('path.csv') as f:
    reader = csv.reader(f)
    for row in reader:
        print(row[0])

p = row[0]

full = p + '\\' + 'test.csv'
with open(full) as f:
    reader = csv.reader(f)
    for row in reader:
        print(row[0])

root = tk.Tk()
root.withdraw()
# メッセージボックス(はい・いいえ) 
ret = tk.messagebox.askyesno('タイトル', 'メッセージ内容')
print(ret)
0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?