python import csv def read_csv_file(file_path): with open(file_path, 'r') as csv_file: reader = csv.reader(csv_file) for row in reader: print(row) read_csv_file('data.csv') python import csv def read_csv_file(file_path): with open(file_path, 'r', encoding='utf-8') as csv_file: reader = csv.reader(csv_file, delimiter=',') for row in reader: print(row) read_csv_file('data.csv')


上一篇:
下一篇:
切换中文