码迷,mamicode.com
首页 >  
搜索关键字:pandas matplotlib nu    ( 5990个结果
LeetCode "3Sum closest"
Simply a variation of 3Sum:class Solution {public: int threeSumClosest(vector &num, int target) { int ret = 99999999999; std::sort(nu...
分类:其他好文   时间:2014-08-18 12:12:34    阅读次数:193
Python中cv2库和matplotlib库色彩空间排布不一致
阐述Python的opencv库和matplotlib库的色彩空间排布是不一样的,并给出了两个库色彩空间不一致的解决方案
分类:编程语言   时间:2014-08-17 00:59:31    阅读次数:318
Javascript 字符串组装用函数 format
if (!String.prototype.format) { String.prototype.format = function() { var args = arguments; return this.replace(/{(\d+)}/g, function(match, nu...
分类:编程语言   时间:2014-08-16 20:59:01    阅读次数:235
GameLoft笔试题目 [Online Network Programmer Test]
gameloft 笔试题目是英文的,前面全部是理论的,最后两道是编程题目。12345最后两道编程题目 其实还算简单:#include #include #include std::string itoa(int number){ char nstr[15]; sprintf(nstr,"%d",nu...
分类:Web程序   时间:2014-08-15 21:06:29    阅读次数:266
hdu3452 无向树去掉最小的边集使任何叶子与根不连通 / 最小割
思路一下就上来了,叶子向汇点连边,inf保证不会成为割,跑根到汇点最小割即可。注意无向树双向建边。基础题,分分钟1A: #include #include #include #include #include #include using namespace std; const int inf=0x3f3f3f3f; const int maxv=1005,maxe=10000; int nu...
分类:其他好文   时间:2014-08-15 10:47:28    阅读次数:303
在Windows Python3.4 上安装NumPy、Matplotlib、SciPy和IPython
NumPy 下载地址:http://sourceforge.net/projects/numpy/files/NumPy/1.8.1/SciPy下载地址:http://sourceforge.net/projects/scipy/files/scipy/0.14.0/Matplotlib下载地址:h...
分类:编程语言   时间:2014-08-13 14:50:26    阅读次数:286
vimrc
1 " show row num 2 set nu 3 4 " show syntax highlight 5 set syntax=on 6 7 " set autoindent 8 set autoindent 9 set cindent10 11 " set tab w...
分类:其他好文   时间:2014-08-13 12:21:06    阅读次数:192
sqlite学习笔记5:插入数据,查询数据和删除数据
曾闻:所有的编程都是已数据为中心,认为非常有道理。 所谓数据库数据库,没有数据叫什么数据库,接下来就看看如何在表中插入数据。   一 插入数据 1 创建一张表  首先为了插入数据,需要先创建一张表: CREATE TABLE COMPANY( ID INT PRIMARY KEY NOT NULL, NAME TEXT NOT NU...
分类:数据库   时间:2014-08-13 01:19:54    阅读次数:215
Python For Data Analysis -- Pandas
首先pandas的作者就是这本书的作者 对于Numpy,我们处理的对象是矩阵 pandas是基于numpy进行封装的,pandas的处理对象是二维表(tabular, spreadsheet-like),和矩阵的区别就是,二维表是有元数据的 用这些元数据作为index更方便,而Numpy只有整形的i...
分类:编程语言   时间:2014-08-12 18:56:14    阅读次数:399
pyqt中使用matplotlib绘制动态曲线
一、项目背景:看了matplotlib for python developers这本书,基本掌握了在pyqt中显示曲线的做法,于是自己写一个。二、需求描述:1)X轴显示时间点,显示长度为1分钟,每一秒钟绘制一个点,X轴长度超过1分钟,则左移1秒刻度,实现动态效果2)Y轴显示随机变化的数值,1-10...
分类:其他好文   时间:2014-08-12 08:59:43    阅读次数:775
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!