<b> 标签-粗体 定义和用法: <b>标签规定粗体文本。 提示和注释 注释:根据 HTML5 规范,在没有其他合适标签更合适时,才应该把 <b> 标签作为最后的选项。HTML5 规范声明:应该使用 <h1> - <h6> 来表示标题,使用 <em> 标签来表示强调的文本,应该使用 <strong> ...
分类:
Web程序 时间:
2016-07-04 18:51:32
阅读次数:
220
平台 as2.2 preview3; 1. 解决方法: 在project.buildgradle 里面设置 // Top-level build file where you can add configuration options common to all sub-projects/modul ...
分类:
移动开发 时间:
2016-06-30 12:41:38
阅读次数:
185
一、isinstance(obj, cls) 检查是否obj是否是类 cls 的对象 二、issubclass(sub, super) 检查sub类是否是 super 类的派生类 三、异常处理 1、异常基础 在编程过程中为了增加友好性,在程序出现bug时一般不会将错误信息显示给用户,而是现实一个提示 ...
分类:
其他好文 时间:
2016-06-29 14:43:14
阅读次数:
230
local a="abcdefgbbb" string.sub(a,1,3) 字符串截取 返回截取的字符串 print(string.sub(a,1,3)) --abc string.gsub(a,"b","c",5) 字符串替换,将a中的bbb替换为ccc 替换5次,返回替换后的字符串跟替换次数 ...
Sub 更新数据1_Click() '1.获取单个文件 Dim strFile As string strFile = GetSingleFileName If strFile = "" Then Exit Sub End if '2.打开单个文件 Application.DisplayAlerts ...
分类:
编程语言 时间:
2016-06-27 15:15:16
阅读次数:
246
今天的一道题目: https://leetcode.com/problems/max-sum-of-sub-matrix-no-larger-than-k/ 有难度。这一类题目很有代表性。 搜到这个网址有针对一维数组的求和的按照时间复杂度一步步优化的过程,讲的很不错: http://www.cnbl ...
分类:
编程语言 时间:
2016-06-27 15:09:43
阅读次数:
167
查找边界 line_text.endswith('my_case_'): line_text.startswith('my_case_')查找子字符串 url.find('show) 文字提取 re.compile(r'\s+(\d+):.*') .sub(r'\1',line_text) # 直接 ...
分类:
其他好文 时间:
2016-06-26 10:21:29
阅读次数:
235
把字符串用后缀树的形式表现出来如下: a b c a b c a b c d e .substr[0] b c a b c a b c d e ....substr[1] c a b c a b c d e .......substr[2] a b c a b c d e ..........sub ...
分类:
其他好文 时间:
2016-06-25 19:05:46
阅读次数:
127
独立应用程序(Self-Contained Applications)现在基于一个简单的APP,通过 Spark API 编写一个独立应用程序。使用 Scala 编写的程序需要使用 sbt 进行编译打包,相应的,Java 程序使用 Maven 编译打包,而 Python 程序通过 spark-sub... ...
分类:
其他好文 时间:
2016-06-25 08:27:44
阅读次数:
165
我觉得linux脚本批处理的特性实在太棒了,改文件名就是一例。 #!/bin/bash # change all the names of the sub-folders. for((i=1;i<=5;i=i+1)) do cd /home/sophie/temp aa=$(ls | grep "$ ...
分类:
其他好文 时间:
2016-06-25 06:12:02
阅读次数:
146