07 2019 档案

摘要:```c include include "stdlib.h" define OK 1 define ERROR 0 define TRUE 1 define FALSE 0 define MAXSIZE 1000 // 定义线性表最大容量 typedef int Status; typedef i 阅读全文
posted @ 2019-07-21 09:09 加州风尘 阅读(237) 评论(0) 推荐(0)
摘要:受阮一峰博客关于KMP字符串匹配算法启发,实现python的kmp实现, 比较清楚明白 地址为 http://www.ruanyifeng.com/blog/2013/05/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm.html python def ne 阅读全文
posted @ 2019-07-19 15:43 加州风尘 阅读(196) 评论(0) 推荐(0)
摘要:```java @Test public void test1() throws UnsupportedEncodingException { // 三者等价 // byte [] a = {00010110, 01010010, 10111000}; // byte [] a = {0x16, 0x52, 0xB8}... 阅读全文
posted @ 2019-07-18 09:55 加州风尘 阅读(208) 评论(0) 推荐(0)
摘要:```python import queue import threading import time def produce(q: queue.Queue): thread_name = threading.current_thread().getName() for i in range(10): print("生产者[%s]--- %d" % (threa... 阅读全文
posted @ 2019-07-08 15:07 加州风尘 阅读(240) 评论(0) 推荐(0)
摘要:```python def test(a, *args, **kwargs): print a print args print kwargs if __name__ == "__main__": test(1, 2, 3 , d='4', e=5) # 输出 1 (2, 3) {'e': 5, 'd': '4'} ``` 阅读全文
posted @ 2019-07-08 10:07 加州风尘 阅读(2991) 评论(0) 推荐(1)