国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

黑馬程序員python教程,8天python從入門到精通,學(xué)python看這套就

2023-02-27 05:34 作者:lzyj7897  | 我要投稿

P110


from pyecharts.options import *

from pyecharts.charts import Bar

from pyecharts.globals import ThemeType

from pyecharts.charts import Timeline


with open(r"1960-2019全球GDP數(shù)據(jù).csv", 'r', encoding="GB2312") as f:

? ? lines = f.readlines()

? ? lines.pop(0)

data = {}

for line in lines:

? ? year = line.split(',')[0]

? ? country = line.split(',')[1]

? ? GDP = float(line.split(',')[2])

? ? try:

? ? ? ? data[year].append([country, GDP])

? ? except:

? ? ? ? data[year] = []

? ? ? ? data[year].append([country, GDP])

timeline = Timeline(init_opts=InitOpts(

? ? theme=ThemeType.ROMA, width="1500px", height="700px", animation_opts=AnimationOpts(animation_duration_update=100)))


for year in data.keys():

? ? data[year].sort(key=lambda element: element[1], reverse=True)

? ? bar = Bar().add_yaxis(

? ? ? ? "GDP", [(x[1]/10**8) for x in data[year][:8]][::-1], label_opts=LabelOpts(position="right")).add_xaxis([x[0] for x in data[year][:8][::-1]]).reversal_axis()

? ? timeline.add(bar, time_point=year)

timeline.add_schema(is_auto_play=True,

? ? ? ? ? ? ? ? ? ? is_timeline_show=True, play_interval=600)

timeline.render("GDP.html")


黑馬程序員python教程,8天python從入門到精通,學(xué)python看這套就的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
双桥区| 重庆市| 清原| 甘南县| 宣化县| 托克逊县| 土默特左旗| 军事| 榆社县| 安康市| 五指山市| 新建县| 财经| 正宁县| 甘肃省| 敦煌市| 洪湖市| 沿河| 太仆寺旗| 韩城市| 江永县| 松潘县| 偏关县| 丽江市| 临海市| 玉屏| 加查县| 广河县| 祁门县| 清河县| 新龙县| 镇坪县| 长子县| 邳州市| 双辽市| 东海县| 瓮安县| 微山县| 柏乡县| 田东县| 文水县|