五月天青色头像情侣网名,国产亚洲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ó)家法律
富阳市| 平江县| 平定县| 秦安县| 微山县| 江川县| 晋江市| 张北县| 赣州市| 乌拉特前旗| 乌恰县| 股票| 昌吉市| 东莞市| 修水县| 炎陵县| 星子县| 科技| 饶平县| 社会| 新龙县| 苏州市| 怀仁县| 稻城县| 郴州市| 阿克陶县| 酒泉市| 赣榆县| 临夏市| 永泰县| 潮州市| 华阴市| 三穗县| 潢川县| 太康县| 泌阳县| 连平县| 来宾市| 衡山县| 资中县| 浦县|