上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: 描述 Python的 sorted() 函数 用于给dict(字典)数据结构排序,按dict中 value的大小排序,大小优先级可以指定。需在文件之前导入operator模块 语法 sorted()方法语法: 参数 dictname -- 被排序的字典变量名 key=operator.itemget 阅读全文
posted @ 2017-06-30 18:46 Apollo_zhanghongbo 阅读(463) 评论(0) 推荐(0) 编辑
摘要: import一个路径解析的.py模块 参考资料: http://blog.csdn.net/wangjian1204/article/details/67633614 阅读全文
posted @ 2017-06-30 17:26 Apollo_zhanghongbo 阅读(13179) 评论(0) 推荐(0) 编辑
摘要: 描述 Numpy 的 tile() 用于叠加(复制)指定的数据结构。 语法 tile()方法语法: 参数 dataStructure -- 被叠加的数据结构 shape --以什么shape叠加 返回值 返回叠加得到的数据结构,一般是ndarray。 实例 以下实例展示了tile()函数的使用方法: 阅读全文
posted @ 2017-06-30 15:07 Apollo_zhanghongbo 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 功能:求numpy数据结构的size 描述 由Numpy中的ndarray变量调用,求shape 语法 shape()方法语法: 参数 ndarrayname -- ndarray变量 返回值 返回shape,一般是tuple变量。 实例 以下实例展示了shape()函数的使用方法: 阅读全文
posted @ 2017-06-30 14:54 Apollo_zhanghongbo 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 1.ndarray.max([int axis]) 函数功能:求ndarray中指定维度的最大值,默认求所有值的最大值。 axis=0:求各column的最大值 axis=1:求各row的最大值 阅读全文
posted @ 2017-06-30 14:52 Apollo_zhanghongbo 阅读(9654) 评论(0) 推荐(0) 编辑
摘要: Python strip()方法 Python 字符串 描述 Python strip() 方法用于移除字符串头尾指定的字符(默认为空格)。 语法 strip()方法语法: 参数 chars -- 移除字符串头尾指定的字符。 返回值 返回移除字符串头尾指定的字符生成的新字符串。 实例 以下实例展示了 阅读全文
posted @ 2017-06-30 10:43 Apollo_zhanghongbo 阅读(482) 评论(0) 推荐(0) 编辑
摘要: 参考: http://blog.csdn.net/infin1te/article/details/50445217 http://www.cnblogs.com/Yu-FeiFei/p/6921782.html 由于之前已经安装了anaconda3,又不想卸载3再重装2,于是想着是否可以在jupy 阅读全文
posted @ 2017-06-29 16:06 Apollo_zhanghongbo 阅读(9972) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/garfielder007/article/details/51646604 阅读全文
posted @ 2017-06-24 14:25 Apollo_zhanghongbo 阅读(241) 评论(0) 推荐(0) 编辑
摘要: \( f(x) = \int_0^1 2x\,dx. \) 阅读全文
posted @ 2017-06-24 13:35 Apollo_zhanghongbo 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 什么是P问题、NP问题和NPC问题 这或许是众多OIer最大的误区之一。 你会经常看到网上出现“这怎么做,这不是NP问题吗”、“这个只有搜了,这已经被证明是NP问题了”之类的话。你要知道,大多数人此时所说的NP问题其实都是指的NPC问题。他们没有搞清楚NP问题和NPC问题的概念。NP问题并不是那种“ 阅读全文
posted @ 2017-06-23 09:50 Apollo_zhanghongbo 阅读(176) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 下一页