
python
文章平均质量分 60
忙碌的布谷鸟
HDE华为开发者专家、HCDE华为云开发者专家、软件设计师、计算机程序设计员(技师)
展开
-
python中安装matplotlib
参考网址http://matplotlib.org/users/installing.html 在控制台中分别输入: python -m pip install -U pip setuptools python -m pip install matplotlib 然后在项目的文件中,创建一个测试文件 import matplotlib.pyplot as plt squares = [原创 2017-07-10 14:17:04 · 745 阅读 · 0 评论 -
python中使用PyPI
在控制台中使用pip install pygal 安装pygal插件。参考网址:http://www.pygal.org/en/stable/installing.html 2. 在die.py文件中, from random import randint class Die(): """表示一个骰子的类""" def __init__(self, num_sides=6):原创 2017-07-10 14:51:16 · 2506 阅读 · 0 评论