int setsockopt(SOCKET s,int level,int optname,const
char* optval,int optlen);s(套接字): 指向一个打开的套接口描写叙述字level:(级别):
指定选项代码的类型。SOL_SOCKET: 基本套接口IPPROTO_IP:...
分类:
其他好文 时间:
2014-06-29 13:40:48
阅读次数:
261
原题地址:https://oj.leetcode.com/problems/anagrams/题意:Given
an array of strings, return all groups of strings that are anagrams.Note: All
inputs will be i...
分类:
编程语言 时间:
2014-06-29 13:25:28
阅读次数:
355
模块是包括python定义和声明的文件。文件名=模块名+".py"。模块名保存在全局变量__name__中。1、模块中的执行语句,只是在导入时执行一次。这些语句通常用于初始化模块。2、被导入的模块被放到全局语义表中。3、import用法
+import moduleName +from modu.....
分类:
编程语言 时间:
2014-06-29 12:34:03
阅读次数:
277
原题地址:https://oj.leetcode.com/problems/search-a-2d-matrix/题意:Write
an efficient algorithm that searches for a value in anmxnmatrix. This matrix has
the...
分类:
编程语言 时间:
2014-06-29 07:56:13
阅读次数:
321
原题地址:https://oj.leetcode.com/problems/valid-sudoku/题意:Determine
if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board
could b...
分类:
编程语言 时间:
2014-06-07 11:26:18
阅读次数:
296
UDP基础知识 UDP(User Datagram
Protocol,用户数据报协议)是一个简单的、面向数据报的无连接协议,提供了快速但不一定可靠的传输服务。 UDP与TCP相比主要有以下区别。
1.UDP速度比TCP快 由于UDP不需要先与对方建立连接,也不需要传输确认,因此其...
分类:
其他好文 时间:
2014-06-07 10:35:47
阅读次数:
268
以有个java应用名称为test,打包为test.jar,程序入口为cn.com.ppnote.SocketServer。
下面在linux的/opt下建立testapp目录,复制test.jar到/opt/testapp/lib目录下。 1、下载Java Service
Wrapper(目前版本w...
分类:
编程语言 时间:
2014-06-07 09:44:33
阅读次数:
236
1.unicode、gbk、gb2312、utf-8的关系http://www.pythonclub.org/python-basic/encode-detail这篇文章写的比较好,utf-8是unicode的一种实现方式,unicode、gbk、gb2312是编码字符集;2.python中的中文编...
分类:
编程语言 时间:
2014-06-07 09:31:22
阅读次数:
280
原题地址:https://oj.leetcode.com/problems/sudoku-solver/题意:Write
a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are
indicated b...
分类:
编程语言 时间:
2014-06-07 09:30:06
阅读次数:
342