mongoDB中聚集集合(collection/coll)相当于mysql中的表文档相当于mysql中的每一行数据常用命令1.获得帮助命令db.help()
db.表名.help()
db.表名.find().help()
rs.help()2.切换/创建数据库use数据库名称注意:mongoDB的数据库可以先使用,后创建,当创建一个集合(table)时,当..
分类:
数据库 时间:
2016-06-03 07:38:23
阅读次数:
241
用于科学计算Python语言真的是amazing! 方法一:直接安装集成好的软件 刚开始使用numpy、scipy这些模块的时候,图个方便直接使用了一个叫做Enthought的软件。Enthought是一家位于美国得克萨斯州首府奥斯汀的软件公司,主要使用Python从事科学计算工具的开发。Entho ...
分类:
编程语言 时间:
2016-06-02 21:38:34
阅读次数:
232
more 类似cat,不过more不是将整个文件内容从上到下显示在屏幕上的,而是以一页一页的显示方便使用者逐页阅读。more最基本的指令就是space即往下翻一页,b即往回翻一页显示,而且还有搜索字符串的功能 +n:从第n行开始显示 -n:定义屏幕大小为n行 +/pattern:在每个档案显示前搜索 ...
分类:
Web程序 时间:
2016-06-02 19:57:37
阅读次数:
251
怒了,一般只有boost提供这种功能,花了几分钟写了个: std::string filename(const std::string& path){ return path.substr(path.find_last_of("/\\") + 1);} std::string basename(co ...
分类:
编程语言 时间:
2016-06-02 18:23:26
阅读次数:
1033
这篇文章主要介绍了MongoDB各种查询操作详解,包括比较查询、关联查询、数组查询等,需要的朋友可以参考下 这篇文章主要介绍了MongoDB各种查询操作详解,包括比较查询、关联查询、数组查询等,需要的朋友可以参考下 一、find操作 MongoDB中使用find来进行查询,通过指定find的第一个参 ...
分类:
数据库 时间:
2016-06-02 18:16:12
阅读次数:
201
1.查找当前目录中所有大于500M的文件,把这些文件名写到一个文本文件中,并统计其个数。find ./ -size +500M -type f | tee file_list | wc -l2.在目录/tmp下找到100个以abc开头的文件,然后把这些文件的第一行保存到文件new中。for file ...
分类:
系统相关 时间:
2016-06-02 17:53:45
阅读次数:
293
@echo off title mysql ::从注册表找到Mysql的安装路径写入文件mysql.txt reg query HKLM\SYSTEM\ControlSet001\Services\MySQL | find /I "ImagePath">C:\mysql.txt if %errorl ...
分类:
数据库 时间:
2016-06-02 16:31:35
阅读次数:
298
Longest Substring Without Repeating Characters
Total Accepted: 152787 Total
Submissions: 687012 Difficulty: Medium
Given a string, find the length of the longest substring wi...
分类:
其他好文 时间:
2016-06-02 14:51:36
阅读次数:
124
一天一道LeetCode
本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github
欢迎大家关注我的新浪微博,我的新浪微博
欢迎转载,转载请注明出处
(一)题目
Given two words word1 and word2, find the minimum number of steps ?>required to convert word1 to w...
分类:
其他好文 时间:
2016-06-02 14:49:33
阅读次数:
202
题目链接:https://leetcode.com/problems/longest-increasing-path-in-a-matrix/
题目:
Given an integer matrix, find the length of the longest increasing path.
From each cell, you can either move to fou...
分类:
其他好文 时间:
2016-06-02 14:18:25
阅读次数:
198