如下所示 给出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
title:
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.
What is the smallest positive number that is
evenly divisible by all of the nu...
分类:
其他好文 时间:
2014-06-07 01:27:37
阅读次数:
229
title:
Largest palindrome product
Problem 4
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91
99.
Find the l...
分类:
其他好文 时间:
2014-06-07 01:24:27
阅读次数:
398
title:
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.
What is the 10 001st prime number?
翻译:
通过列出前6个质数,我们可知第6个质数是13。
那么第10001个质数是...
分类:
其他好文 时间:
2014-06-05 12:28:28
阅读次数:
277
title:
The sum of the squares of the first ten natural numbers is,
12 + 22 + ... + 102 = 385
The square of the sum of the first ten natural numbers is,
(1 + 2 + ... + 10)2 = 552 = 3025
Hence ...
分类:
其他好文 时间:
2014-06-05 12:03:29
阅读次数:
243
python try except else finally 执行顺序详细分析...
分类:
编程语言 时间:
2014-06-05 11:43:56
阅读次数:
305
HTMLParser, a simple lib as html/xhtml parser
官方解释:
This module defines a class
HTMLParser which serves as the basis for parsing text files formatted in HTML (HyperText...
分类:
编程语言 时间:
2014-06-05 11:02:37
阅读次数:
354
在上个章节中,我们提到了如何安装XCA(X Certificate and key management)程序,这个章节我们开始正式介绍如何用XCA生成证书请求。如果大家用过java的话,肯定知道jdk默认提供了一个工具叫做:keytool,这个工具我们能够从java的安装目录下找到,比如我本机就在:C:\Program Files (x86)\Java\jre7\bin; 但是这个工具因为使用的是命令行,不是特别的直观,所以我在本章节给大家演示一下如何用XCA来生成证书请求。...
分类:
其他好文 时间:
2014-06-05 08:39:49
阅读次数:
207
说明:
该程序以隐藏方式运行,程序初始化时注册了两个热键Ctrl+Alt+a和Ctrl+Alt+A,当按下其中之一热键时,会让用户选择截屏的区域。
用户区域选择完后,可以有三种选择:
使用Ctrl+c快捷键保存到剪切板
使用Ctrl+s快捷键弹出保存bmp文件对话框
使用Esc快捷键取消截屏
当用户操作完后,程序并不会退出,用户可以反复的使用热键进行截屏,知道用户手动结束程序。
...
分类:
编程语言 时间:
2014-06-05 08:39:14
阅读次数:
289
有个好网站http://www.lfd.uci.edu/~gohlke/pythonlibs/ , 这个网站可以下载许多非官方的python库的安装包。
1.首先去这个网站下载cx_freeze安装包后安装。
2.在C:\PythonXX\Scripts\ 下可以看到cxfreeze-quickstart.bat, XX为版本号
3.运行cxfreeze-quickstart.bat...
分类:
编程语言 时间:
2014-06-05 06:24:55
阅读次数:
350