按照salary的累计和running_total,其中running_total为前两个员工的salary累计和,其他以此类推。 ...
分类:
其他好文 时间:
2017-10-21 19:13:26
阅读次数:
528
:nth-child和:nth-of-type都是CSS3中的伪类选择器,其作用近似却又不完全一样,对于不熟悉的人对其可能不是很区分,本文就将介绍两者的不同,以便于大家正确灵活使用这两类选择器。 先看下面两句css: p:nth-child(2) { color: red; } p:nth-of-t ...
分类:
Web程序 时间:
2017-10-20 14:12:42
阅读次数:
165
Given a non-empty list of words, return the k most frequent elements. Your answer should be sorted by frequency from highest to lowest. If two words h ...
分类:
其他好文 时间:
2017-10-19 00:16:48
阅读次数:
250
product_list=[
(,),
(,),
(,),
(,),
(,),
(,),
]
shopping_list=[]salary=()salary.isdigit():salary=(salary)
:
index,item(product_list):(index,item)
user_choice=()
user_choice.isdigit():user_choice=(user_choice)user_choice<(product_list)user_choice>=:p_it..
分类:
编程语言 时间:
2017-10-18 19:42:04
阅读次数:
130
最近做的网站,需要兼容IE8,在这里记录一下,碰到的问题,方便以后查看补充 1.CSS选择器nth-child 不兼容 IE8不兼容 这种写法 在网上百度了一下 兼容写法 戳这里 由于我的是少数静态轮播图的样式,所以采用了 添加类名的这种比较low的方式来解决 2.CSS属性 cover 背景自适应 ...
分类:
其他好文 时间:
2017-10-18 16:42:59
阅读次数:
154
Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You might ...
分类:
其他好文 时间:
2017-10-16 23:20:36
阅读次数:
174
# Author:nadech name = input("name:") age = input("age:") salary = input("salary:") #字符化的拼接,舍弃,因为每使用一次+号,都会重新开辟内存空间 info = ''' ----------info of '''+n... ...
分类:
其他好文 时间:
2017-10-14 14:52:14
阅读次数:
158
product_list=[
(,),
(,),
(,),
(,),
(,),
(,)
]
shopping_list=[]
salary=()salary.isdigit():salary=(salary):
index,item(product_list):(index,item)
user_choice=()
user_choice.isdigit():user_choice=(user_choice)
user_choice<(product_list)user_choice>=:p_i..
分类:
编程语言 时间:
2017-10-13 22:22:15
阅读次数:
213
移除链表中倒数第n个元素马丹,返回的不是第n个元素,而是移除了元素之后的链表地址。。。。。。读了十几年书,审题还是这种水平 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * stru... ...
分类:
其他好文 时间:
2017-10-13 16:12:06
阅读次数:
163
在刷LeetCode的时候遇到的SQL题目 627. Swap Salary Given a table salary, such as the one below, that has m=male and f=female values. Swap all f and m values (i.e. ...
分类:
数据库 时间:
2017-10-12 20:21:14
阅读次数:
236