五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(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ó)家法律
施甸县| 兴仁县| 阳西县| 阳信县| 沈阳市| 新建县| 巴彦淖尔市| 商都县| 齐齐哈尔市| 始兴县| 东平县| 象山县| 淮阳县| 永安市| 吉水县| 修武县| 东山县| 三门峡市| 淅川县| 扬州市| 象山县| 新田县| 徐州市| 抚顺市| 望江县| 宁武县| 册亨县| 乌鲁木齐市| 罗定市| 达拉特旗| 阜康市| 寿宁县| 手机| 东平县| 莱州市| 北宁市| 元氏县| 高碑店市| 永新县| 依安县| 罗甸县|