摘要: python之使用pygal模拟掷骰子创建直方图: 1,文件die.py,源码如下: 1 from random import randint 2 3 class Die(): 4 '''表示一个骰子的类''' 5 def __init__(self,num_sides = 6): 6 '''初始化 阅读全文
posted @ 2020-05-20 16:36 、一叶孤城 阅读(196) 评论(0) 推荐(0)