最近在做项目的时候遇到一个挺坑的崩溃问题,是由于NSDictionary初始化时nil指针引起的崩溃。假设我们现在要初始化一个{key1 : value1, key2 : value2, key3 : value3}的NSDictionary,一般有两种初始化方法: 1、使用标准的初始化方法: 1、 ...
分类:
移动开发 时间:
2017-07-14 14:53:29
阅读次数:
324
create function dbo.regexreplace ( @source ntext, --原字符串 @regexp varchar(1000), --正则表达式 @replace varchar(1000), --替换值 @globalreplace bit = 1, --是否是全局替... ...
分类:
数据库 时间:
2017-07-14 11:59:17
阅读次数:
215
sub 汇总多个工作簿() Application.ScreenUpdating = False Dim wb As Workbook, f As String, l As String, n As String, m As String, j As Integer f = ThisWorkbook ...
分类:
编程语言 时间:
2017-07-14 11:55:24
阅读次数:
247
JAXB支持注解将XML转化为对象,具体看一个简单的例子: XML对应的pojo对象: 测试类: 特别注意的是 XML的没一个节点对应一个对象。 ...
分类:
其他好文 时间:
2017-07-14 11:10:14
阅读次数:
252
1. 如果你新装啦一块硬盘,应该对他做的操作 (1)对磁盘分区,新建可用分区 (2)分区格式化,创建文件系统 (3)检验文件系统 (4)创建挂载点(目录),将文件系统挂载到目录上 查看磁盘容量:df 查看目录容量:du 磁盘分区: fdisk 1.只有root才能执行 2.只能处理2TB以下的磁盘分 ...
分类:
系统相关 时间:
2017-07-14 11:08:50
阅读次数:
227
1.数据下载地址 http://pan.baidu.com/s/1ge9bJIN 2.这些数据已经分过类别-webkb 20newsGroup R8,预处理 分词 stemming 词频统计 3.这些数据数据下载地址 http://ana.cachopo.org/datasets-for-singl ...
分类:
Web程序 时间:
2017-07-14 10:19:51
阅读次数:
309
1.java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils 缺少类 2. There is no Action mapped for namespace [/] and action name [indexjsp] a ...
分类:
编程语言 时间:
2017-07-14 10:17:21
阅读次数:
174
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array whic ...
分类:
其他好文 时间:
2017-07-14 00:33:13
阅读次数:
239
1.选择结构if语句格式及其使用 A:if语句的格式: if(比较表达式1) { 语句体1; }else if(比较表达式2) { 语句体2; }else if(比较表达式3) { 语句体3; } ... else { 语句体n+1; } B:执行流程: 首先计算比较表达式1看其返回值是true还是 ...
分类:
其他好文 时间:
2017-07-13 23:48:09
阅读次数:
365