2018年5月23日

摘要: import csv from matplotlib import pyplot as plt from datetime import datetime fileName = 'sitka_weather_07-2014.csv' with open(fileName) as f: reader 阅读全文
posted @ 2018-05-23 14:33 endian11 阅读(7568) 评论(0) 推荐(0)
摘要: 在”Other command line arguments”输入: 阅读全文
posted @ 2018-05-23 10:05 endian11 阅读(150) 评论(0) 推荐(0)

2018年5月22日

摘要: pygal的安装 通过pycharm 直接安装 Die class from random import randint class Die: """表示一个骰子的类""" def __init__(self, num_sides=6): self.num_sides = num_sides def 阅读全文
posted @ 2018-05-22 15:50 endian11 阅读(151) 评论(0) 推荐(0)
摘要: 本sdk需要联网(仅在初始化阶段,因为需要从服务器获取一个key文件) 集成代码 package demo1.tech.anyun.com.myapplication.mgr; import android.content.Context; import android.os.Environment 阅读全文
posted @ 2018-05-22 14:05 endian11 阅读(322) 评论(0) 推荐(0)
摘要: 创建RandomWalk类 新建一个random_walk.py 代码如下: from random import choice class RandomWalk(): """一个生成随机漫步数据的类""" def __init__(self, num_points=5000): """初始化随机漫 阅读全文
posted @ 2018-05-22 13:23 endian11 阅读(157) 评论(0) 推荐(0)
摘要: 使用颜色映射 代码如下: import matplotlib.pyplot as plt x_values = list(range(1, 1001)) y_values = [x**2 for x in x_values] # x**2表示求平方 plt.scatter(x_values, y_v 阅读全文
posted @ 2018-05-22 11:52 endian11 阅读(1546) 评论(0) 推荐(0)
摘要: 使用scatter()绘制散点图并设置其样式 import matplotlib.pyplot as plt xValue = [1, 2, 3, 4, 5] yValue = [1, 4, 9, 16, 25] # 要绘制单个点,可使用函数scatter(),并向她传递包含x值和y值的列表 plt 阅读全文
posted @ 2018-05-22 11:12 endian11 阅读(172) 评论(0) 推荐(0)
摘要: 3. 校正图形 阅读全文
posted @ 2018-05-22 10:58 endian11 阅读(154) 评论(0) 推荐(0)

2018年5月18日

摘要: 阅读全文
posted @ 2018-05-18 15:42 endian11 阅读(67) 评论(0) 推荐(0)
摘要: 2. 发的 阅读全文
posted @ 2018-05-18 11:14 endian11 阅读(69) 评论(0) 推荐(0)

导航