
pygal
Davenny
O ever youthful,O ever weeping.
展开
-
Pygal and Die simulating
from random import randintclass Die(): def __init__(self,num_sides=6): self.num_sides = num_sides def roll(self): return randint(1,self.num_sides) from mpl_squares import Die impo原创 2017-08-07 22:21:36 · 293 阅读 · 0 评论 -
use api in pygal
import requests import pygal from pygal.style import LightColorizedStyle as LCS,LightenStyle as LSurl='https://api.github.com/search/repositories?q=language:python&sort=stars' r = requests.get(url) pri转载 2017-08-17 23:46:00 · 548 阅读 · 0 评论 -
Annoying experience with pygal
Recently,I have been learning pygal according to the book.And I installed the pygal as the book said,this is my code:pip install --user pygal==1.7But ,when I try to use it and ran this code:hist.rend原创 2017-08-07 09:25:45 · 2407 阅读 · 12 评论 -
process json in pygal
import json from random_walk import get_country_code from pygal.maps.world import World from pygal.style import RotateStyle from pygal.style import LightColorizedStyle #from pygal.style import RotateSt原创 2017-08-15 23:20:05 · 552 阅读 · 0 评论