构:@mediaall and( min-width:600px){样式表:即.mainbox{ background:#fff000;}}all可指定的值:样式表:使用and关键字来指定当某种设备类型的某种特性的值满足某个条件时所使用的样式,譬如以下语句指定了当窗口宽度小于640px时所使用的样式...
分类:
其他好文 时间:
2014-08-14 01:03:17
阅读次数:
210
python面向对象非常彻底,即使过程式的代码风格,python在运作的时候也是面向对象的。everything is object。差异在面向对象的理念上,python和非常工程化的面向对象语言(C++、Java、C#)有巨大的差异,这些语言,为了解释他们的原理,往往会祭出一大杀器-----内存模...
分类:
编程语言 时间:
2014-08-14 01:02:07
阅读次数:
336
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example, Given 1->2...
分类:
其他好文 时间:
2014-08-14 01:01:07
阅读次数:
230
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should preserve the o...
分类:
其他好文 时间:
2014-08-14 00:56:47
阅读次数:
199
应用场景,在方法级别对本次调用进行鉴权,如api接口中有个用户唯一标示accessToken,对于有accessToken的每次请求可以在方法加一个拦截器,获得本次请求的用户,存放到request或者session域。 python中,之前在p...
分类:
编程语言 时间:
2014-08-13 22:45:07
阅读次数:
925
一 sudo命令不能用
1 使用su切换到root用户,命令:
su
2 使用名:vim /etc/sudoers添加sudoer用户,命令:
vim /etc/sudoers
找到root=(ALL:ALL)ALL,在下面添加:
%你的用户名=(ALL)ALL
如果不想输入密码,可如下书写:
%你的用户名 ALL=(ALL) NOPASSWD: ALL
二 中文...
分类:
其他好文 时间:
2014-08-13 22:40:37
阅读次数:
297
Python多线程多线程类似于同时执行多个不同程序,多线程运行有如下优点:使用线程可以把占据长时间的程序中的任务放到后台去处理。用户界面可以更加吸引人,这样比如用户点击了一个按钮去触发某些事件的处理,可以弹出一个进度条来显示处理的进度程序的运行速度可能加快在一些等待的任务实现上如用户输入、文件读写和网络收发数据等,线程就比较有用了。在这种情况下我们可以释放一些珍贵的资源如内存占用等等。线程在执行过...
分类:
编程语言 时间:
2014-08-13 22:32:17
阅读次数:
292
Description
Chosen Problem Solving and Program design as an optional course, you are required to solve all kinds of problems. Here, we get a new problem.
There is a very long board with length L...
分类:
其他好文 时间:
2014-08-13 22:28:57
阅读次数:
401
本以为四年恒久远,哪知转眼一瞬间[问题描述]Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please...
分类:
其他好文 时间:
2014-08-13 22:18:07
阅读次数:
272