样例输入
3
样例输出
['城市', '环比', '同比', '定基\n'] ['北京', '101.5', '120.7', '121.4\n'] ['上海', '101.2', '127.3', '127.8\n']
解题代码
#coding=gbk """【""" import csv f=open("price2016.csv","r") n=int(input()) readers=csv.reader(f) for i in range(n): for row in readers: row[-1]+='\n' print(row) break ##print(f.readline()) f.close() """】"""
标签:文件,每行,内容,csv,price2016,row From: https://www.cnblogs.com/hghdbk/p/16838245.html