码迷,mamicode.com
首页 >  
搜索关键字:python number pandas dataframe sort    ( 174627个结果
正则表达式-python-无捕获分组与分支选择
无捕获分组当你要将一部分规则作为一个整体对它进行某些操作,比如指定其重复次数时,你需要将这部分规则用(?:)把它包围起来。分支条件在正则表达式中,分支条件是一个很常用的条件。满足条件A 或者 满足条件B ,这个时候我们就可以使用分支条件了。分支条件使用的符号为 |代码示例:我们突然发现,...
分类:编程语言   时间:2014-05-01 10:05:33    阅读次数:435
《每日一博》——学习
额,还没有想好写什么(我这样忽悠读者,读者一定会感受到我的诚意的吧!)。 总之呢,我介绍一下现在我基本了解的一些计算机技术吧 1.安全类 web安全(入 侵 、 提 权 ) 网络安全(路由器 、wifi、以及其他) 信息安全(社工) 2.制作类 c系列 java html ps(这个应该也算...
分类:其他好文   时间:2014-05-01 10:02:20    阅读次数:442
Visulalization Voronoi in OpenSceneGraph
Abstract. In mathematics a Voronoi diagram is a way of dividing space into a number of regions. A set of points, called seeds, sites, or generators is...
分类:其他好文   时间:2014-05-01 09:46:54    阅读次数:493
Python Urllib2和Cookielib的综合使用
# Python Urllib2和Cookielib的综合使用标签(空格分隔): Python Urllib2 Fetch---1. 手动添加请求的Headers,在opener,Request,urlopen,看看有几种方法可以使用相同的Headers处理不同的网页;2. 设定CookieJar,...
分类:编程语言   时间:2014-05-01 09:43:02    阅读次数:487
求一个数的最大素因子(python实现)
首先想到的是,将这个数进行素因子分解,得到所有的因子,然后取最大的。 首先写一个判断一个数是否是素数的方法: #judge a number whether a prime def judgePrime(self,number,pme): if number < 2: ...
分类:编程语言   时间:2014-05-01 09:05:26    阅读次数:3333
Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2014-05-01 08:35:40    阅读次数:443
c++ ACM常用函数
1 保留小数点后两位#include cout const char * spilt="/";char *p;p=strtok(str,spilt);while(p!=NULL){ //cout #includesort(Rs.begin(),Rs.end());sort(Rs.begin(),Rs...
分类:编程语言   时间:2014-05-01 05:05:45    阅读次数:409
快速排序
package algorithm.sort;public class QuickSort { public static void main(String[] args) { int[] a = new int[] {5, 3, 7, 2, 1, 4, 9, 8, 6, 1}; sort(a); ...
分类:其他好文   时间:2014-05-01 03:33:20    阅读次数:330
计数排序
package algorithm.sort;public class CountingSort { public static void main(String[] args) { int[] a = new int[] {5, 3, 7, 2, 1, 4, 9, 8, 6, 1}; int[] ...
分类:其他好文   时间:2014-05-01 03:25:05    阅读次数:252
堆排序
package algorithm.sort;public class HeapSort { public static void main(String[] args) { int[] a = new int[] {5, 3, 7, 2, 1, 4, 9, 8, 6, 1}; sort(a); p...
分类:其他好文   时间:2014-05-01 03:24:04    阅读次数:332
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!