excel转为csv文件:
将上面的csv文件转为html文件:
运用python CGI将上面的csv文件用网页表示:
代码:
#-*-encoding:utf-8-*- import csv #读取csv文件 print('Content-type:text/html ') with open("D:wwwcgi-binPython成绩登记信计11.csv", "r") as f: reader = csv.reader(f) for row in reader: print(row) print(" ")