-1
您好,我是新开发的web开发人员,并且一直在使用python来创建我的web应用程序。这里是我的代码:成功克隆和安装pyexcel-xlsx,但导入时出现语法错误
def forecastvalues():
import fileinput
import csv
from pyexcel_xlsx import get_data
xlsxfile= "test.xlsx"
import json
with open(xlsxfile, "rb") as f:
content = f.read()
r = pe.get_book(file_type="xlsx", file_content=content, start_row=1)
for i in records:
columns = sheet.row[i]
for j in columns:
rem = sheet.column[0]
sold1 = sheet.column[1]
sold2 = sheet.column[2]
return '<h1>Result: %s</h1>' % result
我正确安装pyexcel但是当我导入pyexcel它得到一个语法错误,我该如何解决这个问题?