大小写控制函数 字符控制函数 将“abcdababab”中的字符p替换成m; 去掉两边的空格。 LPAD:salary字符不够10个的时候,在左侧添加'-'凑够10个字符; RPAD:salary字符不够10个的时候,在右侧添加'*'凑够10个字符; 查询字符'p'在HelloWorld中的所以位置 ...
分类:
数据库 时间:
2017-07-02 21:17:58
阅读次数:
234
https://leetcode.com/problemset/all/?search=19 涉及链表删除操作的时候,稳妥起见都用 dummynode,省去很多麻烦。因为不一定什么时候 head 就被删了。 快慢指针 ...
分类:
其他好文 时间:
2017-07-01 19:19:30
阅读次数:
168
#文本内容 Rain 80000\n Egon 50000\n Yuan 30000\n salary = open("salaryinfo.txt", "r+", encoding="UTF-8") salary_list = [] #定义一个新的列表值。 for line in salary.r... ...
分类:
其他好文 时间:
2017-07-01 01:10:11
阅读次数:
256
shoplist = [] product_list = [ ('computer',5000), ('apple',50), ('book',42), ('iphone',6800) ] salary = input("输入您的工资:") if salary.isdigit(): salary =... ...
分类:
其他好文 时间:
2017-07-01 00:12:58
阅读次数:
203
SQL> create or replace procedure sp_pro5(id_in varchar2) is 2 v_sal mytest.salary%type; 3 begin 4 select salary into v_sal from mytest where id=id_in; ...
分类:
数据库 时间:
2017-06-30 00:04:13
阅读次数:
284
SQL> select * from mytest; ID NAME PASSWD SALARY 1 gagaga 123 100 2 gaodingle!!!! 123 100 3 gagaga 123 100 SQL> SQL> create function annual_calsaly(id ...
分类:
数据库 时间:
2017-06-29 19:24:05
阅读次数:
197
我将这坨伪类分成三组,第一组:nth-child,nth-last-child,only-child第二组:nth-of-type,nth-last-of-type,第三组:first-of-tpye,last-of-type,第四组:first-child,last-child。 ==1== nt ...
分类:
其他好文 时间:
2017-06-29 14:02:14
阅读次数:
149
在类中声明的变量或常量叫属性,或者叫成员变量,如name、salary、count 在方法中声明的变量叫局部变量,或者临时变量。 属性可以使用四种权限修饰符修饰,局部变量不可以 属性可以使用static修饰,局部变量不可以 属性可以使用final修饰,局部变量也可以 属性的生命周期很长,随着类加载或 ...
分类:
其他好文 时间:
2017-06-29 00:48:26
阅读次数:
267
C++ Primer 学习中。。。 简单记录下我的学习过程 (代码为主) //全部容器适用 nth_element(b,n,e) nth_element(b,n,e,p) 对照:partition()算法 /** http://blog.csdn.net/u010579068 **/ #includ ...
分类:
编程语言 时间:
2017-06-28 11:02:27
阅读次数:
170
x:first-child和x:nth-child(1)功能一样,首先选中的是x元素,并且x元素必须是它父元素的第一个子元素,选择器才成立,否则不能选中。其中x也可以是选择器。由此看出nth-child功能强劲,完全可以代替first-child的功能。 x:first-of-type,选择x元素的 ...
分类:
其他好文 时间:
2017-06-26 19:05:39
阅读次数:
151