上一页 1 ··· 67 68 69 70 71 72 73 74 75 ··· 152 下一页
摘要: 题目大意:输入一个字符串。输出它的下一个字典序排列。 字典序算法思想: 1.从右向左寻找字符串找出第一个a[i]<a[i+1]的位置i; 2.从右向左找出第一个大于a[i]的元素a[j]; 3.swap(a[i],a[j]) 4.将a[i+1]......到a[stelen(a)]倒序 5.输出a 阅读全文
posted @ 2017-06-20 14:49 cxchanpin 阅读(236) 评论(0) 推荐(0)
摘要: 继上一篇BeautifulSoup的高级应用,主要解说的是contents children descendants string strings stripped_strings。本篇主要解说.parent .parents .next_sibling .previous_sibling .nex 阅读全文
posted @ 2017-06-20 13:22 cxchanpin 阅读(5563) 评论(0) 推荐(0)
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=655 没有理解清题意就硬套模板。所以WA了好几次。 解析看我的还有一篇http://blog.csdn.net/u011026968/article/details/3557903 阅读全文
posted @ 2017-06-20 11:58 cxchanpin 阅读(234) 评论(0) 推荐(0)
摘要: 1.在cocos2d-x-js 3.0中能够使用localstorage 存储keyvalue信息 var Util = cc.Class.extend({ saveData:function(key, value) { cc.sys.localStorage.setItem(key, value) 阅读全文
posted @ 2017-06-20 10:42 cxchanpin 阅读(252) 评论(0) 推荐(0)
摘要: 在unix中可用的文件I/O函数包含打开文件,读文件,写文件等。 Unix系统中的大多数文件I/O须要用到5个函数:open,read,write,lseek,close. 这里要说明的是read,write的文件I/O都是不带缓冲的,所谓的不带缓冲意思是它们都是走的内核中的一个系统调用。 对于内核 阅读全文
posted @ 2017-06-20 10:37 cxchanpin 阅读(382) 评论(0) 推荐(0)
摘要: 这里面涉及两个知识点——超链接和跳转。以下进行逐一解说: 1.实现超链接: 1.1形成超链接文本 public static SpannableString getUserlink(String userName, String userId) { SpannableString ss = new 阅读全文
posted @ 2017-06-20 10:03 cxchanpin 阅读(212) 评论(0) 推荐(0)
摘要: php訪问redis须要安装phpredis扩展。phpredis是用纯C语言写的。 phpredis下载地址https://github.com/phpredis/phpredis最新的版本号是phpredis-develop.zip。我们选择的上一个稳定版2.2.7 # wget https:/ 阅读全文
posted @ 2017-06-20 08:29 cxchanpin 阅读(169) 评论(0) 推荐(0)
摘要: http://www.aol.com http://www.duckduckgo.com http://www.gfsoso.com http://www.googlestable.com http://74.125.20.31/ 事实上搜索引擎许多,wikipedia是个好工具,为我们列出了各种各 阅读全文
posted @ 2017-06-19 21:41 cxchanpin 阅读(1211) 评论(0) 推荐(0)
摘要: otto这个开源项目是一个event bus模式的消息框架。用于程序各个模块之间的通信。此消息框架能够使得各个 模块之间降低耦合性。 此项目是支付公司square一个开源项目,项目托管于github https://github.com/square/otto 基本模型是,Android的组件能够注 阅读全文
posted @ 2017-06-19 21:00 cxchanpin 阅读(290) 评论(0) 推荐(0)
摘要: 在全部的文章页中,会常常发现都会有这么一个功能。能引导用户去查看上一篇文章或下一篇文章,而在ShopEx中,我DEZEND了一下文章模型。并没有找到上一篇这种函数功能,因此,这就须要我们手动在相应的文章控制器中自己去加入一个这种功能。 文章控制器相应文件:\core\shop\controller\ 阅读全文
posted @ 2017-06-19 19:41 cxchanpin 阅读(311) 评论(0) 推荐(0)
上一页 1 ··· 67 68 69 70 71 72 73 74 75 ··· 152 下一页