from pyecharts import options as opts
from pyecharts.charts import Radar
import xlrd
import pandas as pd
import numpy as np
import turtle
import random
data=xlrd.open_workbook("雷达图.xlsx") #在默认文件夹打开文件
sheetname=data.sheet_names()
q=-1
for w in sheetname:
infom=[]
q+=1
sheet=data.sheet_by_index(q)
for i in range(sheet.nrows):
dictname={"area":"","碳达峰":"","碳中和":"","碳排放":"","低碳":"","绿色经济":"","绿色债券":"","绿色产业":"",
"绿色就业":"","绿色技术":"","绿色工业":"","节能减排":"","温室气体":"","减少污染":""}
dictname["area"]=sheet.cell_value(i,0)
dictname["碳达峰"]= sheet.cell_value(i,1)
dictname["碳中和"]=sheet.cell_value(i,2)
dictname["碳排放"]