美文网首页
python收入与支出报表

python收入与支出报表

作者: sen_coder | 来源:发表于2020-12-16 13:04 被阅读0次

    部分代码

    def pie_base():
        c1 = (Pie().add("", expend_data, radius=[
            "30%", "85%"
        ], rosetype="radius").set_global_opts(title_opts=opts.TitleOpts(
            title=header +
            "支出")).set_series_opts(label_opts=opts.LabelOpts(formatter="{b}:{c}")))
        return c1
    
    
    pie_base().render(os.path.join(my_path, '支出.html'))
    

    效果

    支出与收入

    相关文章

      网友评论

          本文标题:python收入与支出报表

          本文链接:https://www.haomeiwen.com/subject/comngktx.html