码迷,mamicode.com
首页 >  
搜索关键字:use    ( 28727个结果
一入python深似海--split
下面说说split函数的用法 def break_words(stuff): """This function will break up words for us.""" words = stuff.split(' ')#split('.',1) use '.' split one time return words def sort_words(wo...
分类:编程语言   时间:2014-06-08 18:19:21    阅读次数:336
LeetCode: Populating Next Right Pointers in Each Node II [117]
【题目】 Follow up for problem "Populating Next Right Pointers in Each Node". What if the given tree could be any binary tree? Would your previous solution still work? Note: You may only use constant extra space. For example, Given the following binary tre...
分类:其他好文   时间:2014-06-08 15:46:22    阅读次数:303
LeetCode: Pascal's Triangle II [119]
【题目】 Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,3,3,1]. Note: Could you optimize your algorithm to use only O(k) extra space? 【题意】 给定行索引k, k从0开始,返回该索引指向的杨辉三角的行 要求只能使用O(k)的额外空间 【思路】 ...
分类:其他好文   时间:2014-06-08 15:46:02    阅读次数:272
需求用例分析之六:业务用例之科伯恩系
业务用例与系统用例具有相同的特征,因此编写和评审用例的方法对两者都适用。在业务用例中说明的东西,也会在系统用例中说明。这形成了系统用例和用户用例之间的合作。但这样带来了两个坏消息。 第一:编写者和读者经常把二者弄混,可能把系统行为放入业务用例中,也可能把业务操作归于系统用例。如果能够商量着去做将会有所帮助。但通常编写者和读者不会认识到这样做的重要性。使用系统用例的读者批评业务用例所处层次太高,但却没有认识到提供系统详细的行为细节不是业务用例应该做的;业务用例编写者偶尔把系统行为细节写入其中,结果导致业务主...
分类:其他好文   时间:2014-06-08 10:24:57    阅读次数:145
【转】SQL2008清除日志
USE [master]GOALTER DATABASE DNName SET RECOVERY SIMPLE WITH NO_WAITGOALTER DATABASE DNName SET RECOVERY SIMPLE --简单模式GOUSE DNNameGODBCC SHRINKFILE (N...
分类:数据库   时间:2014-06-08 07:15:39    阅读次数:189
HDU 1075 What Are You Talking About
Problem Description Ignatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a history book of Mars and a dictionary when it leave...
分类:其他好文   时间:2014-06-08 03:55:37    阅读次数:273
This function or variable may be unsafe Consider using xxx instead
问题: 在Visual C++ 6.0 下面运行正常的代码放到Visual Studio 20xx系列里就跑不动了,有时候会提示如下错误: error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT...
分类:其他好文   时间:2014-06-08 03:17:14    阅读次数:227
Linux 内核 链表 的简单模拟(2)
接上一篇Linux 内核 链表 的简单模拟(1) 第五章:Linux内核链表的遍历/*** list_for_each - iterate over a list* @pos: the &struct list_head to use as a loop cursor.* @...
分类:系统相关   时间:2014-06-07 22:09:58    阅读次数:451
How to use the functions of apply and call
Although apply and call can implement same function. However, there is a litter different between them.Please pay attention to look at the examples be...
分类:移动开发   时间:2014-06-07 21:53:15    阅读次数:331
How to use the function of bind
The usage of bind is to define a specified scope for called function. Because the key this is easy to refer another objet, experically window, instead...
分类:其他好文   时间:2014-06-07 21:28:07    阅读次数:307
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!