如下所示 给出2个解法
def euler_problem_18_1():
"""
this problem spend my half-day but noting to finished ,so bad
"""
rows = '''
3
7 4
2 4 6
100 5 9 3
'''
...
分类:
编程语言 时间:
2014-06-07 01:28:18
阅读次数:
261
原文链接:11gR2 dataguard 备库文件损坏处理一例
某客户的一套11gR2 dataguard环境出现异常,检查发现是备库出现文件损坏,且无法正常情况,已经超过1个多月没同步了。 我们先来看下备库的日志:
.......省略部分内容
See Note 411.1 at My Oracle Support for error and packaging details.
S...
分类:
其他好文 时间:
2014-06-07 01:25:07
阅读次数:
217
This article shows my process of installing and configuring bind9 DNS server on a linux server. I didn't touch every aspects of bind9, but following the process, a DNS server is configured with A/AAAA...
分类:
系统相关 时间:
2014-06-05 08:36:26
阅读次数:
450
1 如何将字串 String 转换成整数 int?
A. 有两个方法:
1). int i = Integer.parseInt([String]); 或
i = Integer.parseInt([String],[int radix]);
2). int i = Integer.valueOf(my_str).intValue();
注: 字串转成 Double, Float, Lo...
分类:
编程语言 时间:
2014-06-03 04:43:07
阅读次数:
297
binlog启用和禁用在/etc/my.cnf文件中添加log-bin=mysql-bin来启用binlog,mysql-bin为日志文件名前缀。如果用户有super权限,可通过set
sql_log_bin=1/0来启用或禁用当前会话的binlog记录。binlog的设置A: binlog_do_...
分类:
其他好文 时间:
2014-05-31 15:09:00
阅读次数:
230
package com.my.login;import java.io.File;import
java.io.FileInputStream;import java.io.IOException;import
java.io.InputStream;import java.text.Decimal...
分类:
编程语言 时间:
2014-05-31 06:06:10
阅读次数:
295
1.
内存管理基础知识http://www.cnblogs.com/xingfuzzhd/p/3485924.html 1.
mImageView.setImageResource(R.drawable.my_image); 这段代码会调用
BitmapFactory.decodeStream() ...
分类:
移动开发 时间:
2014-05-31 03:00:44
阅读次数:
394
css3选择器1.通过元素的关键字,如p,div等2.通过id属性3.通过class属性引用3.1通过class属性引用p标签,如:p.text{}//text样式只适用于p4.通过任意键引用例如:p[name]{}//仅引用带有name属性的p标签p[name="my"]{}//仅引用带有name...
分类:
Web程序 时间:
2014-05-31 01:28:28
阅读次数:
291
1、修改/etc/my.cnf文件
找到mysqld选项,增加子项skip-grant-tables2、重新启动mysql服务 service mysqld restart3、进入mysql
在shell中执行mysql -u root4、设置root新密码 update mysql.user se...
分类:
数据库 时间:
2014-05-30 23:34:38
阅读次数:
334