一.页面板块设计 页面整体分为上下两部分,分别用box1,box2,来划分。上半部分主要是:团购网站,切换图标,内容展示。其中网站用<h2>标记,切图用<ul>,<li>构建结构。下部分包括文字说明,和价格以及超链接跳转。大体由<p>和<a>标记构成。 二.页面实现 1.主体基本结构: 2.css样 ...
分类:
Web程序 时间:
2017-04-15 20:51:11
阅读次数:
260
在编写自己定义滑动控件时经常会用到Android触摸机制和Scroller及VelocityTracker。Android Touch系统简单介绍(二):实例具体解释onInterceptTouchEvent与onTouchEvent的调用过程对Android触摸机制须要用到的函数进行了具体的解释。 ...
分类:
移动开发 时间:
2017-04-15 16:38:01
阅读次数:
268
from random import randomfrom math import sqrtfrom time import clockdarts = 10000hits =0.0clock()for i in range(1,darts+1): x,y = random(),random dist ...
分类:
其他好文 时间:
2017-04-15 15:38:44
阅读次数:
134
疯狂的暑假学习之 汇编入门学习笔记 (九)—— call和ret 參考: 《汇编语言》 王爽 第10章 call和ret都是转移指令。 1. ret和retf ret指令:用栈中的数据,改动IP内容,从而实现近转移 相当于: pop ip retf指令:用栈中的数据。改动CS和IP,从而实现远转移 ...
分类:
其他好文 时间:
2017-04-15 13:39:03
阅读次数:
253
G - Asteroids! Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Description You're in space. You want to get home. T ...
分类:
其他好文 时间:
2017-04-14 20:29:35
阅读次数:
198
SlideAndDragListView简介 SlideAndDragListView,可排序、可滑动item显示”菜单”的ListView。 SlideAndDragListView(SDLV)继承于Android的ListView,SDLV可以拖动item到SDLV的任意位置,其中包括了拖动it ...
分类:
移动开发 时间:
2017-04-14 14:15:21
阅读次数:
326
主要是将json无法识别的字符进行转义 function dotran($str) { $str = str_replace('"','//"',$str); $str = str_replace("/r/n",'//r//n',$str); $str = str_replace("/t",'//t ...
分类:
Web程序 时间:
2017-04-14 13:24:24
阅读次数:
376
中缀表达式 运算符号在数字中间 后缀表达式 运算符号在数字之后 计算机计算计算的是后缀表达式 中缀变后缀举例 5 + 3 -> 5 3 + 1 + 2 * 3 -> 1 2 3 * + 9 + (3 - 1) * 5 -> 9 3 1 - 5 * + 中缀变后缀算法 ···遍历中缀表达式中的数字和符 ...
分类:
其他好文 时间:
2017-04-13 20:09:51
阅读次数:
157
reference: 1. Paper describes initializing the deconv layer with bilinear filter coefficients and train them. But in the provided train/val.prototxt, ...
分类:
其他好文 时间:
2017-04-13 10:09:48
阅读次数:
187
一 为什么使用CMake CMake是一个比make更高级的编译配置工具,它可以根据不同平台、不同的编译器,生成相应的Makefile或者vcproj项目。通过编写CMakeLists.txt,可以控制生成的Makefile,从而控制编译过程。CMake自动生成的Makefile不仅可以通过make ...
分类:
其他好文 时间:
2017-04-12 20:25:35
阅读次数:
1009