编程语言
Tips: VC++在新建一个.asm文件后必须重新导入project中才能进行编译。 下面是一个汇编与C++相互调用的例子: Main.cpp #include #include #include class CTest{public: void Init() { m_nSize = 100; m...
分类:编程语言 时间:2014-02-09 15:30:02 收藏:0 阅读:400
python中的range函数表示一个连续的有序序列,range使用起来很方便,因为在定义时就隐含了初始化过程,因为只需要给begin()和end()或者仅仅一个end(),就能表示一个连续的序列。还可以指定序列产生的步长,如range(0,10,8)产生的序列为[0, 8], 默认的步长为1,ra...
分类:编程语言 时间:2014-02-09 15:26:07 收藏:0 阅读:439
Python中所有加载到内存的模块都放在sys.modules。当import一个模块时首先会在这个列表中查找是否已经加载了此模块,如果加载了则只是将模块的名字加入到正在调用import的模块的Local名字空间中。如果没有加载则从sys.path目录中按照模块名称查找模块文件,模块文件可以是py、...
分类:编程语言 时间:2014-02-09 15:25:07 收藏:0 阅读:503
在windows中安装 django1、在http://www.djangoproject.com/download中下载安装软件2、解压下载后的文件,并将解压后的文件放置到(我这里的python放在C盘的C://python33)C://python33中3、打开命令提示符,进入到c://pyth...
分类:编程语言 时间:2014-02-09 15:22:57 收藏:0 阅读:743
分类:编程语言 时间:2014-02-09 16:07:11 收藏:0 阅读:353
bool find(int x,int l,int r){ if(l>r) return false; int mid=(l+r)/2; if(s[mid]==x) return true; else if(s[mid]>x) return find(x,l,mid-1); else return ...
分类:编程语言 时间:2014-02-09 16:06:16 收藏:0 阅读:397
void openf(){ freopen("demo.in","r",stdin); freopen("demo.out","w",stdout);}void closef(){ fclose(stdin); fclose(stdout);}
分类:编程语言 时间:2014-02-09 16:03:41 收藏:0 阅读:363
void qsort(int l,int r){ int i,j,t,mid; mid = b[(l+r)>>1]; i = l; j = r; do { while (b[i]mid) j--; if (i<=j) { t = b[i]; b[i] = b[j]; b[j] = t; i++; j...
分类:编程语言 时间:2014-02-09 16:03:31 收藏:0 阅读:425
方法有两种:请参考:http://www.pip-installer.org/en/latest/installing.html#prerequisites 1.通过setuptools安装 安装setuptools,下载 https://pypi.python.org/pypi/setuptool...
分类:编程语言 时间:2014-02-08 17:02:03 收藏:0 阅读:543
class A(object): def __init__(self): print "init" def __new__(cls,*args, **kwargs): print "new %s"%cls return object.__new__(cls, *args, **kwargs)A()输...
分类:编程语言 时间:2014-02-08 16:57:03 收藏:0 阅读:533
151213512145121551284
上一页512833下一页
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!