摘要:
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32 #Chapter 5 条件, 循环和其它语句 #5.1 print和import的很多其它信息 #对于非常多应用程序来说, 使用log 阅读全文
posted @ 2017-06-19 18:20
yjbjingcha
阅读(171)
评论(0)
推荐(0)
摘要:
之前对于横屏的webapp做过一些尝试,可是始终不是非常好的解决方式,前段时间又接触了类似的需求,尝试了感觉更好的解决方式。 之前的方法写的博客:移动网页横竖屏兼容适应的一些体会 这里举的样例还是平时常见的移动端的滑动页面,也就是上下切换页面的”H5“。 首先要做的准备: 1、html布局 <div 阅读全文
posted @ 2017-06-19 17:49
yjbjingcha
阅读(543)
评论(0)
推荐(0)
摘要:
向server上传文件在android开发中是一件在普通只是的事了。正好如今项目中实用到就做一下总结吧。 1.使用HttpURLConnection。这样的方法比較麻烦,须要自己模拟表单提交。2.使用httpmime库实现,这样的方法是建立在HttpClient基础上的。在2.3以后使用HttpUR 阅读全文
posted @ 2017-06-19 17:42
yjbjingcha
阅读(152)
评论(0)
推荐(0)
摘要:
在Android的开发其中,Application和Context对象应该是我们接触最多的对象了,特别是Context对象。 当我们在某个Activity或者Service其中时,因为它们本身就是Context的子类。因此“this”能够等价于Context对象使用。然而。在非常多时候这个Conte 阅读全文
posted @ 2017-06-19 16:22
yjbjingcha
阅读(160)
评论(0)
推荐(0)
摘要:
Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit the 阅读全文
posted @ 2017-06-19 15:09
yjbjingcha
阅读(152)
评论(0)
推荐(0)
摘要:
作为一名程序猿,日常的工作除了上班撸代码就是加班撸代码了。撸码事实上不难,无非询问Google,StackOverflow,解决方法和demo一箩筐。可是撸的一手好代码着实不易。无独有偶,码农一抓一大把,优秀的程序猿却不易寻觅。优秀的程序猿既不可能出自各种天花乱坠的培训机构,更不可能来自挖掘机摇篮山 阅读全文
posted @ 2017-06-19 15:07
yjbjingcha
阅读(271)
评论(0)
推荐(0)
摘要:
#include<iostream> using namespace std; int a[1010]; void qsort(int a[],int l,int r) { int x=a[l],i=l,j=r; if(l>=r) return ; while(i<j) { while(i<j&&a 阅读全文
posted @ 2017-06-19 14:10
yjbjingcha
阅读(178)
评论(0)
推荐(0)
摘要:
package exchange_sort; import java.util.Random; /*各类交换排序 * 数据存储范围1~s.length-1 *主要包含 *冒泡排序 *快排 */ public class Sort { /* * 冒泡排序 稳定 */ private static vo 阅读全文
posted @ 2017-06-19 12:29
yjbjingcha
阅读(158)
评论(0)
推荐(0)
摘要:
1 踩过的坑 1.1 io_service boost::asio::io_service::run()会一直运行到没有任务为止,假设中途调用stop()。则全部等待中的任务会立马运行。要在停止的时候抛弃全部的任务,解决方式是用run_one()。即 while (keep_running) io_ 阅读全文
posted @ 2017-06-19 11:43
yjbjingcha
阅读(402)
评论(0)
推荐(0)
摘要:
准备工作: 我用的开发环境是windows下的apache+mysql+php 编辑器不知道该用哪个好。临时用dreamweaver吧 我自己的http://localhost/相应的根文件夹是E:/website/localhost/ yii的下载地址是https://github.com/yii 阅读全文
posted @ 2017-06-19 10:08
yjbjingcha
阅读(190)
评论(0)
推荐(0)
浙公网安备 33010602011771号