概述 本文主要介绍正则表达式的代码使用。 学习正则表达式的基本语法,可以参考使用手册:https://tool.oschina.net/uploads/apidocs/jquery/regexp.html 但是有几个问题需要特别注意: ① 转义符号 \ 的问题 比如,我们需要匹配一个数字,对应的正则 ...
分类:
编程语言 时间:
2020-07-20 13:08:56
阅读次数:
78
Given a string S, return the number of substrings of length K with no repeated characters. Example 1: Input: S = "havefunonleetcode", K = 5 Output: 6 ...
分类:
其他好文 时间:
2020-07-20 10:52:27
阅读次数:
55
如上图,控制台出现类似: Error in nextTick: "InvalidCharacterError: Failed to execute 'setAttribute' on 'Element': ', ' is not a valid attribute name." 错误,说明vue t ...
分类:
其他好文 时间:
2020-07-20 10:15:51
阅读次数:
103
abstract: 抽象的 1.可以用来修饰:类、方法 2.具体的:abstract修饰类:抽象类 * > 此类不能实例化 * > 抽象类中一定有构造器,便于子类实例化时调用(涉及:子类对象实例化的全过程) * > 开发中,都会提供抽象类的子类,让子类对象实例化,完成相关的操作 >抽象的使用前提:继 ...
分类:
其他好文 时间:
2020-07-19 23:32:42
阅读次数:
71
PHP 7 除了在性能方面有极大提升外,还添加了很多新的特性,如太空船操作符、标量类型声明、返回值的类型说明、全局的 throwable 接口、抽象语法树等,下面分别介绍。 太空船操作符 太空船操作符用于比较两个表达式。例如,当$a小于、等于或大于$b时,它分别返回-1、0或1。比较的原则沿用PHP ...
分类:
Web程序 时间:
2020-07-19 23:30:12
阅读次数:
89
缓存机制 ListView的两级缓存 ListView的缓存和复用由它的父类AbsListView中的RecycleBin实现,设了两个缓存数组mActiveViews和mScrapViews。mActiveViews缓存显示在屏幕中的view,mScrapViews按ViewType缓存离屏的vi ...
分类:
移动开发 时间:
2020-07-19 23:23:51
阅读次数:
220
create function uf_findx (@text nvarchar(max),@find_x varchar(200),@find_n int)returns intasbegin --第n位无效参数返回0 if @find_n<1 return (0); --字符串不含指定字符串返回 ...
分类:
其他好文 时间:
2020-07-19 23:11:26
阅读次数:
79
匿名内部类 创建对象和实现类的定义同步完成,必须实现一个接口或者继承一个类 package how2j; //根据要求找到相关信息的学生对象 //java中不允许函数回调,所以将函数方放在类或者接口中,所以在使用时传的是对象,或者接口实现类产生的对象 //lambda表达式是匿名内部类的简单写法 p ...
分类:
其他好文 时间:
2020-07-19 15:55:37
阅读次数:
53
Description You have k lists of sorted integers in ascending order. Find the smallest range that includes at least one number from each of the k lists ...
分类:
其他好文 时间:
2020-07-19 15:47:40
阅读次数:
73
package LeetCode_1060 /** * 1060. Missing Element in Sorted Array * (Prime) * Given a sorted array A of unique numbers, find the K-th missing number s ...
分类:
其他好文 时间:
2020-07-19 00:49:27
阅读次数:
93