字符串的方法 1. charAt();返回字符串指定索引的字符; 2. concat();连接两个或多个字符串; 3. indexOf();返回字符串中检索指定字符第一次出现的位置; 4. lastIndexOf();返回字符串中检索指定字符最后一次出现的位置; 5. subString();提取字 ...
分类:
编程语言 时间:
2019-03-02 14:46:39
阅读次数:
203
interest:PIU DSS DDR function getFormInfo(){ var params = serializeForm('login'); alert(params); } ...
分类:
Web程序 时间:
2019-03-01 12:13:40
阅读次数:
235
函数功能:表示不同图形的文本标签图案。 调用签名:plt.legend(loc="lower left") loc:图例在图中的地理位置 代码实现: ...
分类:
编程语言 时间:
2019-02-28 18:37:01
阅读次数:
8816
模板 一、模板语法之变量 {{ comment.create_time|date:"Y-m-d H:i:s" }} {{ bio|truncatewords:"30" }} {{ my_list|first|upper }} {{ name|lower }} {{ forloop.counter } ...
分类:
其他好文 时间:
2019-02-28 00:47:22
阅读次数:
179
一 基础数据类型 三 基础数据运算 1 索引 切片 步长 2 capitalize 首字母大写,其余小写 3 center 4 upper lower 验证码 5 swapcase 大小写转换 6 title 以非字母符号分开字符串,将分割开的部分首字母大写 7 startswith 8 index ...
分类:
编程语言 时间:
2019-02-27 20:33:44
阅读次数:
157
题面: Alexandra has a paper strip with n numbers on it. Let's call them ai from left to right. Now Alexandra wants to split it into some pieces (possibl ...
分类:
其他好文 时间:
2019-02-26 19:12:03
阅读次数:
267
& x5404;& x79CD;& x89C6;& x89C9;& x76F8;& x5173;& x7684;& x7C7B; & x4E0B;& x56FE;& x6765;& x81EA; <<Wpf& x63A7;& x4EF6;& x5F00;& x53D1;>> ...
ou should process m queries over a set D of strings. Each query is one of three kinds: Note that you should solve the problem in online mode. It means ...
分类:
其他好文 时间:
2019-02-25 00:27:32
阅读次数:
296
Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Input: "aba" Output: True Exa ...
分类:
其他好文 时间:
2019-02-24 18:46:38
阅读次数:
178
1.join 2.split 3.find 4.strip 5.upper 6.lower 7.索引 8.切片 9.len 10.for循环 11.range ...
分类:
编程语言 时间:
2019-02-23 10:52:19
阅读次数:
181