S.find(substring,[start[end]])#可指范围查找子串,返回索引值,否则返回-1例如>>>b = 'abcd'>>> b.find('d')3>>> b.find('d',2,4)3>>> b.find('d',3,4)3>>> b.find('d',2,3)-1可见当指定范...
分类:
编程语言 时间:
2015-12-02 14:09:30
阅读次数:
115
在做Form开发中,经常会遇到需要在一个块中创建一条或者是多条数据。首先,一般我们会先定位到最后一条记录(有时候会先执行查询:app_find.find('BLOCK_NAME ');查询出需要的数据然后做最后一条记录的定位)。移动当前记录到最后一条记录可以使用下面的语法:GO_BLOCK('BLO...
分类:
其他好文 时间:
2015-12-02 12:06:37
阅读次数:
175
Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjac...
分类:
其他好文 时间:
2015-12-01 23:11:18
阅读次数:
320
Problem DescriptionA hat’s word is a word in the dictionary that is the concatenation of exactly two other words in the dictionary.You are to find all...
分类:
其他好文 时间:
2015-12-01 22:51:43
阅读次数:
203
题目连接https://leetcode.com/problems/find-median-from-data-stream/Find Median from Data StreamDescriptionMedian is the middle value in an ordered integer...
分类:
其他好文 时间:
2015-12-01 21:06:00
阅读次数:
189
题目连接https://leetcode.com/problems/range-sum-query-mutable/Range Sum Query - MutableDescriptionGiven an integer arraynums, find the sum of the elements...
分类:
其他好文 时间:
2015-12-01 21:05:53
阅读次数:
216
题目连接https://leetcode.com/problems/range-sum-query-immutable/Range Sum Query - ImmutableDescriptionGiven an integer arraynums, find the sum of the elem...
分类:
其他好文 时间:
2015-12-01 20:58:20
阅读次数:
117
今天安装mysql-5.5.3-m3的时候,报下面的错误:-- Could NOT find OpenSSL (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)-- Could NOT find Curses (missing: CURSES_LIBRA...
分类:
移动开发 时间:
2015-12-01 14:25:41
阅读次数:
204
break这个词都不陌生,最常用到的就是在switch语句中。如果在switch的case后面忘写了break,就会顺序执行到下一个case的对应的语句。我说的这种情况只是对于C++,对于C Sharp如果忘记了break,编译器是会报错的。仔细想想,好像自己还真没有用过break在其他地方。导致自己又掉入了一个大坑中。比如使用一个for循环查找数组中所要的元素中your_find对应的索引:int...
分类:
其他好文 时间:
2015-12-01 12:56:07
阅读次数:
138
https://leetcode.com/problems/interleaving-string/Givens1,s2,s3, find whethers3is formed by the interleaving ofs1ands2.For example,Given:s1="aabcc",s2...
分类:
其他好文 时间:
2015-12-01 12:43:45
阅读次数:
144