码迷,mamicode.com
首页 >  
搜索关键字:boost python    ( 136912个结果
Python学习_列表解析和Lambda表达式
1.根据要求创建列表threes_and_fives(列表值包括1到15中能够被3或者5正常的数)threes_and_fives=[x for x in range(1,16) if x%3==0 or x%5==0]2.lambda表达式实例(剔除掉列表中的”X“)garbled = "IXXX...
分类:编程语言   时间:2014-05-18 19:48:23    阅读次数:397
boost::bind boost::function
#include #include #include #include #include using namespace boost; using namespace std; class point {public: point(int a=0,int b=0):x(a),y(b) {}...
分类:其他好文   时间:2014-05-18 19:42:18    阅读次数:290
python的文件读写
python文件的基本读写操作。
分类:编程语言   时间:2014-05-18 18:57:41    阅读次数:233
boost 轻量化xml封装
最近项目实在是太忙了~恩 此封装在一般使用频率不大的键值对应配置, 要复杂的结构还是要编写XML对应生成代码工具比较方便和高效 1 #pragma once 2 #include 3 #include 4 #include 5 #include 6 #include 7 ...
分类:其他好文   时间:2014-05-18 02:41:01    阅读次数:245
ubuntu下boost的配置方法
boost版本为: boost_1_52_0ubuntu版本为:ubuntu-12.04.1-desktop-i386这里有两种安装方法:=============第一种:也是最简单的:进入linux系统后,输入 # apt-cache search boost你将看到很多文件信息,你会看到其中一个...
分类:其他好文   时间:2014-05-18 00:27:46    阅读次数:428
Python sorted
sorted函数:iterable:是可迭代类型;cmp:用于比较的函数,比较什么由key决定,有默认值,迭代集合中的一项;key:用列表元素的某个属性和函数进行作为关键字,有默认值,迭代集合中的一项;reverse:排序规则. reverse = True 或者 reverse = False,有...
分类:编程语言   时间:2014-05-17 23:36:24    阅读次数:511
Machine learning with python - Linear Regression
Machine learning with python Linear Regression 数据来自 cs229 Problem Set 1 (pdf)Data:q1x.dat,q1y.dat,q2x.dat,q2y.datPS1 Solution (pdf)从左上往右下 batchG...
分类:编程语言   时间:2014-05-17 23:05:44    阅读次数:525
Python基础(8)--文件
文件可以通过调用open或file来打开,open通常比file更通用,因为file几乎都是为面向对象程序设计量身打造本文地址:http://www.cnblogs.com/archimedes/p/python-file.html,转载请注明源地址。打开文件打开文件程序会调用内置的open函数,首...
分类:编程语言   时间:2014-05-17 18:58:06    阅读次数:419
Eclipse 下搭建pyDev python开发环境及helloworld
一,安装基础环境 1,安装jdk7,并配置环境变量(pyDev要求jdk7及以上版本,否则安装好也不显示) 2,下载Eclipse并解压 3,安装python3.X二,Eclipse下配置pyDev 1,安装插件:help -> Install new Software.. ->输入PyDe...
分类:编程语言   时间:2014-05-17 18:54:51    阅读次数:322
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!