码迷,mamicode.com
首页 >  
搜索关键字:head tail ‘tail -f’ ‘tail -f’    ( 36072个结果
head first python_2 函数
为了将一个函数的必要参数变为可选参数,需要为这个参数提供一个缺省值 >>>?def?print_lol(the_list,level)????????????#这两个参数都是必要的 >>>?def?print_lol(the_list,level=0)??????...
分类:编程语言   时间:2014-07-28 17:01:44    阅读次数:322
图片淡入淡出代码,鼠标移上透明度变化
又一个图片透明度特效,鼠标移在图片上,图片的透明度就发生变化,最初的透明度为20,鼠标移上后透明度恢复正常,很明显的响应鼠标的图片特效,而且代码超简单,新手也能学会使用。<html><head><metahttp-equiv="Content-Type"content="text/html;charset=gb231..
分类:其他好文   时间:2014-07-28 16:44:14    阅读次数:164
有意思的图片组合飞入效果
有意思的图片组合飞入效果,本代码将多张GIF图片按一定方向组合在一起,由两个方向向一个方向组合,需要多张图片,但最终效果挺好,以前不怎么见到过,发上来分享给JS爱好者,请预览看效果吧。<html><head><metahttp-equiv="Content-Type"content="text/html;ch..
分类:其他好文   时间:2014-07-28 16:43:34    阅读次数:314
git diff 使用
1. 本地工作目录与远程仓库对比(所有改动过的文件) git diff HEAD 2. 之对比给定的文件 git diff -- filename3. 与历史提交对比 git diff commit -ascidfjutt2389292929921working tree:就是你所工作在的目录...
分类:其他好文   时间:2014-07-28 15:08:13    阅读次数:226
LeetCode Reverse Nodes in k-Group
class Solution {public: ListNode *reverseKGroup(ListNode *head, int k) { if (k next = rhead; } last = rtail; } ...
分类:其他好文   时间:2014-07-28 11:22:20    阅读次数:227
LeetCode——Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant space. Y...
分类:其他好文   时间:2014-07-28 00:28:19    阅读次数:273
C语言-链表
单向链表:结构体非常适合链表结构,链表的组成:head指针、数据块节点指针p->nest、结束指针NULL.链表操作:需要首先找到表头head指针。链表的操作包括动态链表的创建、顺序输出、删除节点、插入节点的操作。动态存储操作函数:(ANSI规则返回的指针类型为void*,早期的为字符型指针) 分....
分类:编程语言   时间:2014-07-27 23:11:19    阅读次数:236
head first python_1
#print_lol.py #python?3默认递归深度不超过100 #创建print_lol可重用的代码块,在函数代码组内调用自身 >>>m=[1,2,[3,4,[5,6]]] >>>def?print_lol(list): ????????for?item?in?list: ?????...
分类:编程语言   时间:2014-07-27 12:12:32    阅读次数:227
Jquery实现复选框只能单选
<html> <head> <scriptsrc="http://code.jquery.com/jquery-1.11.1.min.js"></script> </head> <body> <divid="divckb"> <inputtype="checkbox"name="ckb1"value="1"/>张三 <inputtype="checkbox"name="ckb2"value="2"/>..
分类:Web程序   时间:2014-07-27 12:11:16    阅读次数:285
Jquery实现复选框只能单选
<html> <head> <scriptsrc="http://code.jquery.com/jquery-1.11.1.min.js"></script> </head> <body> <divid="divckb"> <inputtype="checkbox"name="ckb1"value="1"/>张三 <inputtype="checkbox"name="ckb2"value="2"/>..
分类:Web程序   时间:2014-07-27 12:11:06    阅读次数:241
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!