1. 最基本的读文件方法:# File: readline-example-1.pyfile =
open("sample.txt")while 1: line = file.readline() if not line: break pass # do
something 一行一行得从文件读数据....
分类:
编程语言 时间:
2014-05-29 01:34:30
阅读次数:
402
一、寄存器的英文全称AH&AL=AX(accumulator):累加寄存器
BH&BL=BX(base):基址寄存器 CH&CL=CX(count):计数寄存器 DH&DL=DX(data):数据寄存器
SP(Stack Pointer):堆栈指针寄存器 BP(Base Pointer):基址指针寄...
分类:
其他好文 时间:
2014-05-28 19:09:52
阅读次数:
300
使用这个功能时,遇到几个问题: 1. 当点击library时,ie报错:A problem
with this webpage caused Internet Explorer to close and reopen the tab
解决方法:使用Internet Explorer (No Add-...
分类:
其他好文 时间:
2014-05-28 16:17:47
阅读次数:
536
Chrome插件开发笔记360翻译了Chrome插件开发的文档
(仍然建议出去看看)看这里http://open.chrome.360.cn/extension_dev/overview.html什么是扩展一个应用(扩展)其实是压缩在一起的一组文件,包括HTML,CSS,Javascript脚本,图...
分类:
其他好文 时间:
2014-05-28 01:49:25
阅读次数:
896
A星寻路算法真是我一生接触的第一个人工智能算法了。。。
A星寻路算法显然是用来寻路的,应用也很普遍,比如梦幻西游。。。算法的思路很简单,就是在bfs的基础上加了估值函数。 它的核心是 F(x) = G(x) +
H(x) 和open、close列表: G(x)表示从起点到X点的消耗(或者叫...
分类:
编程语言 时间:
2014-05-26 19:16:57
阅读次数:
413
A Stack is a data-structure that You can only add
an element to the top of the Stack, andYou can only read or remove an element
also from the top.Plea...
分类:
编程语言 时间:
2014-05-26 17:10:21
阅读次数:
540
HangoverTime Limit: 1000MSMemory Limit:
10000KTotal Submissions: 99369Accepted: 48162DescriptionHow far can you make a
stack of cards overhang a tabl....
分类:
其他好文 时间:
2014-05-25 18:46:14
阅读次数:
216
Elasticsearch is a powerful open source search
and analytics engine. The vulnerability allows attackers read from or append to
files on the system hos...
分类:
其他好文 时间:
2014-05-25 16:40:56
阅读次数:
349
在X86汇编中,MOV [0012H],
[0016H]这种指令是不允许的,至少得有一个操作数是寄存器。当然,这种问题在用高级语言的时候看不到,感觉好像基本上都是从内存到内存啊,为毛到了汇编就不行了???这个问题在stack
overflow有个解释不错:The answer involves a ...
分类:
其他好文 时间:
2014-05-25 14:50:06
阅读次数:
248
Splay Tree 支持的之中操作。
插入,删除,求前驱和后即,区间更新与查询。
先来一发Splay Tree最基础的操作——伸展。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#pragma comment(linker, "/STACK:102400...
分类:
其他好文 时间:
2014-05-25 04:27:37
阅读次数:
291