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
使用这个功能时,遇到几个问题: 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
http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html 这个M 就是maximum
display width。那什么是maximum display width?看了下面的例子很容易说明了,注意zerofill :my.....
分类:
数据库 时间:
2014-05-28 04:07:12
阅读次数:
314
Chrome插件开发笔记360翻译了Chrome插件开发的文档
(仍然建议出去看看)看这里http://open.chrome.360.cn/extension_dev/overview.html什么是扩展一个应用(扩展)其实是压缩在一起的一组文件,包括HTML,CSS,Javascript脚本,图...
分类:
其他好文 时间:
2014-05-28 01:49:25
阅读次数:
896
.box {/*非IE6、IE7的主流浏览器识别的垂直居中的方法*/display:
table-cell;
//设置了这个属性之后,此元素会做为一个表格单元格显示,类似th、td,margin属性将不起作用vertical-align:middle;/*
针对IE6、IE7的Hack */*d.....
分类:
其他好文 时间:
2014-05-27 16:08:20
阅读次数:
321
pygame.init()
#初始化pygame,为使用硬件做准备screen=pygame.display.set_mode((640,480),0,32)
#创建了一个窗口,set_mode会返回一个Surface对象,代表了在桌面上出现的那个窗口,三个参数第一个为元祖,代表分 辨率(必须);第...
分类:
其他好文 时间:
2014-05-26 20:10:13
阅读次数:
337
A星寻路算法真是我一生接触的第一个人工智能算法了。。。
A星寻路算法显然是用来寻路的,应用也很普遍,比如梦幻西游。。。算法的思路很简单,就是在bfs的基础上加了估值函数。 它的核心是 F(x) = G(x) +
H(x) 和open、close列表: G(x)表示从起点到X点的消耗(或者叫...
分类:
编程语言 时间:
2014-05-26 19:16:57
阅读次数:
413
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
在AWR中定位到问题SQL语句后想要了解该SQL statement的具体执行计划,于是就用AWR报告中得到的SQL ID去V$SQL等几个动态性能视图中查询,但发现V$SQL或V$SQL_PLAN视图都已经找不到对应SQL ID的记录,一般来说这些语句已经从shared pool共享池中被替换出去了。
这个时候我们可以尝试使用DBMS_XPLAN.DISPLAY_AWR存储过程来将Oracle...
分类:
数据库 时间:
2014-05-25 16:24:32
阅读次数:
368
Android DIP: Device-independent Pixel Graphics Design How Android Supports Device Displays: UI Design and UX Device Display Concepts: Size, Density, Orientation, DIP size Type small,normal,large,...
分类:
移动开发 时间:
2014-05-25 07:28:50
阅读次数:
458