import csv #輸入csv套件comma separated value
file = open('SPY.CSV','r',encoding='utf-8') #打開下載的檔案SPY.CSV,模式是r讀取,
csvreader = csv.reader(file) #將檔案讀入變數csvreader
header, rows = [], [] #宣告空白串列(陣列,清單)
header = next(csvreader) #串列header儲存檔案第一列
for row in csvreader: #檔案接續逐列附加append於rows串列
rows.append(row)
file.close() #關閉檔案
print(header)
print('劉任昌分析列數:',len(rows))#視窗放大按下CTRL +
學生必須去考英打才可以建立對Code的觀念
字元UNICHAR 字碼UNICODE
' 39
" 34
( 40
) 41
{ 123
} 125
[ 91
] 93
‘ 8216
’ 8217
“ 8220
” 8221
- 4/9上課https://xi-xbox-mmi.blogspot.com/2026/04/blog-post.html
- 請你們班女同學都來上課啦https://linxinzhuo.blogspot.com/2026/04/import-csv-csvcomma-separated-value.html
https://xuan0729.blogspot.com/2026/04/import-csv-csvcomma-separated-value.html
回覆刪除https://huang-pei-kai.blogspot.com/2026/04/pythoncsv.html
回覆刪除https://11217133d.blogspot.com/2026/04/pythoncsv.html
回覆刪除https://xi-xbox-mmi.blogspot.com/2026/04/blog-post.html
回覆刪除https://linxinzhuo.blogspot.com/2026/04/import-csv-csvcomma-separated-value.html
回覆刪除https://laiweikaiaaa.blogspot.com/2026/04/pythoncsv.html
回覆刪除https://s10655075.blogspot.com/2026/04/pythoncsv.html
回覆刪除https://the-most-great.blogspot.com/2026/04/pythoncsv.html
回覆刪除https://yiminglinn.blogspot.com/2026/04/pre-styleborder-pink-10px-solid-4-09.htm
回覆刪除https://honghikun.blogspot.com/2026/04/pythoncsv.html
回覆刪除https://yiingxxn.blogspot.com/2026/04/pythoncsv.html
回覆刪除https://the-most-great-tony11.blogspot.com/2026/04/pythoncsv.html
回覆刪除https://chenyoukai.blogspot.com/2026/04/pythoncsv.html
回覆刪除