1.添加水平线
2.添加垂直线
<View
android:layout_height="match_parent"
android:background="#686868"
a...
分类:
移动开发 时间:
2015-07-22 00:06:09
阅读次数:
465
源起
Python强制缩进,使用Tab键和空格都可以,但不能混用。混用Tab和空格会导致报错:IndentationError: unindent does not match any outer indentation level。如果你的编辑器没有可视化空格和Tab,修改起来是抓狂的。
PEP8推荐使用空格来缩进。因为不同的编辑器、IDE对Tab键的处理不一样,有的宽度为4,有的为8。...
分类:
编程语言 时间:
2015-07-21 17:22:10
阅读次数:
1252
1. JavaScript Component (1) add a CustomComponent.manifest# The {classID} here must match the classID in CustomComponent.jscomponent {e6b866e3-41b2-4....
分类:
其他好文 时间:
2015-07-21 12:00:59
阅读次数:
91
076 Minimum Window Substring这道题就是用一个dictionary来跟踪有多少还需要Match的字母以及当前需要match的次数。 再用一个queue 来记录哪些字幕被Match了以及他们被match的顺序from collections import defaultdic...
先取得Navigator对象的userAgent属性的小写信息,之后根据正则表达式判断赋值。var Sys = {};
var ua = navigator.userAgent.toLowerCase();
var s;
var scan;
(s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] : (s = ua
.match(/firefox\/([...
分类:
Web程序 时间:
2015-07-20 23:35:13
阅读次数:
149
一、有两种状态: 选中状态(true)、未选中状态(false)二、属性 android:id = "@+id/checkbox" android:layout_width="match_parent" android:layout_height="wrap_content"...
分类:
移动开发 时间:
2015-07-20 21:20:25
阅读次数:
150
有这种错误让人很恼火,因为并不知道是哪个文件引起的整个项目错误。所以我们可以打开下边的错误按钮,看看是什么问题。如果是因为java compiler level does not match the version of the installed java,那么我们打开项目的properties,...
分类:
系统相关 时间:
2015-07-20 18:54:13
阅读次数:
186
今天学习了Python中有关正则表达式的知识。关于正则表达式的语法,不作过多解释,网上有许多学习的资料。这里主要介绍Python中常用的正则表达式处理函数。 re.match re.match 尝试从字符串的开始匹配一个模式...
分类:
编程语言 时间:
2015-07-20 14:38:15
阅读次数:
155
Android开发中在布局文件里面都会有如下面的内容:
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
andro...
分类:
移动开发 时间:
2015-07-20 01:21:00
阅读次数:
806
HDU 3081 Marriage Match IIpid=3081" target="_blank" style="">题目链接题意:n个女孩n个男孩,每一个女孩能够和一些男孩配对。然后有些女孩是朋友。满足这个朋友圈里面的人,假设有一个能和某个男孩配对,其它就都能够,然后每轮要求每一个女孩匹配到一...
分类:
其他好文 时间:
2015-07-19 19:38:20
阅读次数:
168