2016年8月27日
摘要: ubuntu python3.4 1.安装selenium, pip 安装 2.selenium版本2.53.x 试过从官网下载的selenium3,但是firefox要安装新的geckodriver,就换回2.53.x了。 下回研究后再补充。 3.开始示例练习 试验了一个QQ邮箱登录程序: # - 阅读全文
posted @ 2016-08-27 11:27 zhourong1104 阅读(127) 评论(0) 推荐(0) 编辑
  2016年5月5日
摘要: A unit fraction contains 1 in the numerator. The decimal representation of the unit fractions with denominators 2 to 10 are given: 1/2 = 0.5 1/3 = 0.( 阅读全文
posted @ 2016-05-05 16:18 zhourong1104 阅读(236) 评论(0) 推荐(1) 编辑
摘要: 数学方法: 暴力: 阅读全文
posted @ 2016-05-05 14:55 zhourong1104 阅读(195) 评论(0) 推荐(1) 编辑
摘要: #一般穷举 #改进,//2或者//3。能减少至少一半的计算量 #改进,sqrt(num)+1,然后根据对称性求出另一个因子。能减少90%的计算量! 阅读全文
posted @ 2016-05-05 10:46 zhourong1104 阅读(216) 评论(0) 推荐(1) 编辑
  2016年5月4日
摘要: datetime此功能很好用。省去了计算的麻烦。 阅读全文
posted @ 2016-05-04 19:21 zhourong1104 阅读(198) 评论(3) 推荐(1) 编辑
摘要: >>> sum([int(i) for i in str(2**1000)]) 1366 >>> 阅读全文
posted @ 2016-05-04 14:30 zhourong1104 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 约4S 对求因子的算法进行一点改进,能提高一半效率。 再次对求因子进行改进,效率提高10倍!! 阅读全文
posted @ 2016-05-04 14:16 zhourong1104 阅读(211) 评论(0) 推荐(1) 编辑
摘要: 递归实现collatz计算。 使用num + num<<1 +1 替代3*num +1,提高一点点效率。 但是算完需要20S左右 阅读全文
posted @ 2016-05-04 10:58 zhourong1104 阅读(207) 评论(0) 推荐(1) 编辑