pymongo是python的一个模块,可能通过sudo pip install
pymongo来安装。导入pymongoimport pymongo创建连接conn =
pymongo.Connection("127.0.0.1",27017)查看所有的数据库conn.database_names...
分类:
数据库 时间:
2014-06-06 20:11:20
阅读次数:
335
原题地址:https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/题意:Say
you have an array for which theithelement is the price of a given stoc...
分类:
编程语言 时间:
2014-06-06 20:04:46
阅读次数:
400
VBoxGuestAdditions.isovirtualbox主机和虚拟机之间怎样实现文件共享_百度知道http://zhidao.baidu.com/question/250530961.html?fr=qrl&index=0&qbl=topic_question_0&word=VBoxGues...
分类:
系统相关 时间:
2014-06-06 19:35:07
阅读次数:
300
Windows提供Heap相关的API,可以创建多个Heap。但是Linux下只有一个意义上的Heap,就是Data
Segment,由brk/sbrk系统调用来调整其大小。参考:http://man7.org/linux/man-pages/man2/sbrk.2.html
为eclipse创建桌面快捷方式
在linux桌面空白处,点击鼠标右键,弹出一个对话框,选择“create Launcher”(中文是“新建启动器”),在“Create
Launcher”(中文“创建快捷方式”)对话框中选择Application(中文“应用程序”),输入名字:eclipse ,在C...
分类:
系统相关 时间:
2014-06-06 19:09:52
阅读次数:
346
Python : codes sources, forum, tutoriaux et
astucesWriting Idiomatic Python BookPython for ArcGIS | ArcGIS Resource
CenterPython Code Examples | YEI T...
分类:
其他好文 时间:
2014-06-06 18:42:33
阅读次数:
223
在linux中的每一个文件或目录都包含有访问权限,这些访问权限决定了谁能访问和如何访问这些文件和目录。通过设定权限可以从以下三种访问方式限制访问权限:只允许用户自己访问;允许一个预先指定的用户组中的用户访问;允许系统中的任何用户访问。同时,用户能够控制一个给定的文件或目录的访问程度。一个文件目录可能...
分类:
其他好文 时间:
2014-06-06 18:30:42
阅读次数:
192
转载:http://blog.sina.com.cn/s/blog_62e7fe670101dg9d.htmlLinux下find一次查找多个指定文件或者排除某类文件,在
GREP 中匹配多个关键字的方法(1)Linux下find一次查找多个指定文件:查找a.html和b.htmlfind.-nam...
分类:
系统相关 时间:
2014-06-06 18:20:03
阅读次数:
345
算法导论上面快速排序的实现。代码:def partition(array, left, right):
i = left-1 for j in range(left, right): if array[j] <= array[right]: i += ...
分类:
编程语言 时间:
2014-06-06 18:18:13
阅读次数:
351
[PATCH] Fix an bad variable name erro in runltp
script (/opt/ltp/runltp)Hi All,I got an error for the latest version 20140115 of
ltp project.This erro...
分类:
系统相关 时间:
2014-06-06 17:51:26
阅读次数:
370