摘要:
今天在G+发现一个帖子(https://plus.google.com/u/0/114741495643730382543/posts/HWDJ5jrwuXW),很有意思,只有一行,但是实现了一个一般要循环3次的功能,这一行神奇的代码如下:>>> [''.join(l) for l in [list(t) for t in list(itertools.product(*[['m','p'], ['a','e'], ['n','t','w']]))] 阅读全文
posted @ 2014-01-12 21:46
jaw-crusher
阅读(313)
评论(0)
推荐(0)
摘要:
上次一个朋友问的两列布局,半天没搞定,其实他的html没写好,当然我写的也不咋样,哈哈,今天有空再做一个两列布局,参考糯米团的样子:html: 两列布局实例 [2店通用]XX影城 单人影票!可升级套餐,黄金大片,超强视听感觉,惊爆你的眼球! ... 阅读全文
posted @ 2014-01-12 19:25
jaw-crusher
阅读(237)
评论(0)
推荐(0)
摘要:
学习网络编程,调试各种连接和数据很麻烦,也有很多现成工具可以使用,不过还是喜欢再造个轮子来自己玩玩.header.h 定义了IP和TCP包头格式:#include #include #include #include #include #include #include #include #include #include /* 定义TCP和IP的包头格式*//* IP header */struct ip { u_char ip_vhl; /* version > 2 */ u_char ip_tos; ... 阅读全文
posted @ 2014-01-12 16:24
jaw-crusher
阅读(1862)
评论(0)
推荐(0)

浙公网安备 33010602011771号