会员
周边
新闻
博问
闪存
众包
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
gundam2007
博客园
首页
新随笔
联系
订阅
管理
2022年12月22日
字符串转整型
摘要: func MyAtoi(s string) int { //fmt.Printf("input:%s\n", s) var arrString = []rune(s) lenArr := len(arrString) if lenArr == 0 { return 0 } //查找第一个索引 fir
阅读全文
posted @ 2022-12-22 12:01 gundam2007
阅读(39)
评论(0)
推荐(0)
2019年1月10日
cookie和session的区别?
摘要: Session是另一种记录客户状态的机制,不同的是Cookie保存在客户端浏览器中,而Session保存在服务器上。客户端浏览器访问服务器的时候,服务器把客户端信息以某种形式记录在服务器上。这就是Session。客户端浏览器再次访问时只需要从该Session中查找该客户的状态就可以了。 如果说Coo
阅读全文
posted @ 2019-01-10 14:04 gundam2007
阅读(261)
评论(0)
推荐(0)
2018年7月19日
【转】链表翻转的图文讲解
摘要: https://blog.csdn.net/fx677588/article/details/72357389
阅读全文
posted @ 2018-07-19 18:46 gundam2007
阅读(94)
评论(0)
推荐(0)
2018年7月17日
【转】判断数组是否存在重复元素
摘要: https://blog.csdn.net/liangliang8086/article/details/26629475
阅读全文
posted @ 2018-07-17 11:05 gundam2007
阅读(82)
评论(0)
推荐(0)
2018年6月11日
[转]求字符串中连续出现次数最多的子串
摘要: 来源:https://www.cnblogs.com/tgycoder/p/5488687.html
阅读全文
posted @ 2018-06-11 14:28 gundam2007
阅读(90)
评论(0)
推荐(0)
2018年6月5日
求两个字符串的最长公共子串
摘要: 采用一个二维矩阵来记录中间结果,矩阵的横坐标为字符串1的各个字符,矩阵的纵坐标为字符串2的各个字符。 举例说明:假设两个字符串分别为"bab"和"caba" (当然我们现在一眼就可以看出来最长公共子串是"ba"或"ab") b a b c 0 0 0 a 0 1 0 b 1 0 1 a 0 1 0
阅读全文
posted @ 2018-06-05 13:55 gundam2007
阅读(334)
评论(0)
推荐(0)
2017年2月10日
mac phpstorm 破解方法
摘要: 方法参考如下链接: 来源:http://www.cnblogs.com/zyliang/p/6148960.html
阅读全文
posted @ 2017-02-10 12:14 gundam2007
阅读(1277)
评论(0)
推荐(0)
2017年1月17日
PHP计算翻页
摘要: function fanye() { if ($total <= $num) { $list['curTotal'] = $total; } else { $offsetA = $start; $offsetB = $offsetA + $num - 1; $i = 0; foreach ($lis
阅读全文
posted @ 2017-01-17 13:36 gundam2007
阅读(197)
评论(0)
推荐(0)
2016年4月8日
python计算MD5
摘要: python有自带的MD5模块hashlib,用起来简单很多。Python Hashlib模块的使用说明 http://docs.python.org/2/library/hashlib.htmlfd = hashlib.md5() #获取一个MD5加密算法对象fd.update("string")
阅读全文
posted @ 2016-04-08 11:15 gundam2007
阅读(1294)
评论(0)
推荐(0)
2015年12月28日
python多线程举例
摘要: Python中使用线程有两种方式:函数或者用类来包装线程对象。 1、 函数式:调用thread模块中的start_new_thread()函数来产生新线程。如下例: import time import thread def timer(no, interval): cnt = 0 while cn
阅读全文
posted @ 2015-12-28 14:31 gundam2007
阅读(237)
评论(0)
推荐(0)
公告