会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
19
20
21
22
23
24
25
26
27
···
48
下一页
2016年6月29日
JAVA值传递和引用传递 以及 实参是否改变
摘要: 八大数据类型和String 在进行传递的时候 不会改变. 八大数据类型 String 类 为什么 String也是类但是 不会改变呢? 总结一下: 在两个方法当中
阅读全文
posted @ 2016-06-29 18:49 X-POWER
阅读(1025)
评论(0)
推荐(0)
2016年6月25日
JAVA的双色球 小程序
摘要: 还是挺简单的,功能过于强大。 byte short int 在计算的时候 会自动转换为 int 类型。
阅读全文
posted @ 2016-06-25 23:13 X-POWER
阅读(5046)
评论(0)
推荐(0)
2016年6月21日
简单小爬虫
摘要: 1 import urllib2,time 2 vio=0 3 f=open(r'f:\\aa.txt','w') 4 while vio" 19 ph=const.find(head,beg+20) 20 if ph==-1: 21 break 22 beg=ph 23 f.write(const[...
阅读全文
posted @ 2016-06-21 15:30 X-POWER
阅读(372)
评论(1)
推荐(0)
2016年6月20日
成员函数指针 .
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; class Time // 居然 会和 库函数 重名 { ...
阅读全文
posted @ 2016-06-20 17:40 X-POWER
阅读(262)
评论(0)
推荐(0)
2016年6月19日
使用默认参数的构造函数 .
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include 13 #include 14 #include 15 using namespace std; 16 clas...
阅读全文
posted @ 2016-06-19 17:47 X-POWER
阅读(1406)
评论(0)
推荐(0)
2016年6月18日
python的变量作用域
摘要: 1 import time 2 global mark,sum 3 def gaosi(Q): 4 global sum,mark # 在 使用的时候防止隔离 也要声明一下 这个是全局变量 , 引用外面的值 5 sum+=Q 6 Q-=1 7 if(Q==0 or mark==1): 8 mark=1 9 else...
阅读全文
posted @ 2016-06-18 19:06 X-POWER
阅读(163)
评论(0)
推荐(0)
2016年6月14日
N的阶乘的长度 V2(斯特林近似) 求 某个大数的阶乘的位数 .
摘要: 求某个大数的阶乘的位数 . 得到的值 需要 +1 得到真正的位数
阅读全文
posted @ 2016-06-14 16:18 X-POWER
阅读(428)
评论(0)
推荐(0)
N的阶乘的长度
摘要: 阶乘是乘法 , 乘法的话 , 几位数*几位数的位数 就是 哪两个几位数相加 . 这个可以用log10来解决 , 所以有如下代码 .
阅读全文
posted @ 2016-06-14 15:18 X-POWER
阅读(406)
评论(0)
推荐(0)
2016年6月12日
最大子段和
摘要: 求模的 都可以在 被求模数的 得到过程中 对 被求模数的 不玩整体 进行求模 , 并且得到的模值 不会改变 . 这样的话 可以解决被 求模的数 过大 计算机无法保存的情况 .
阅读全文
posted @ 2016-06-12 16:08 X-POWER
阅读(146)
评论(0)
推荐(0)
快速求最大公约数 .
摘要: 转相除法基于如下原理:两个整数的最大公约数等于其中较小的数和两数的相除余数的最大公约数。 51nod 上面的题型 不少 , 把这里所有的写一遍 , 温习一下 ,
阅读全文
posted @ 2016-06-12 16:07 X-POWER
阅读(800)
评论(0)
推荐(0)
上一页
1
···
19
20
21
22
23
24
25
26
27
···
48
下一页
公告