1.2.5以下这段代码会打印出什么?String s="Hello World";s.toUpperCase();s.subString(6,11);StdOut.println(s);答:"Hello World"。String对象是不可变的--所有字符串方法都会返回一个新的String对象(但它 ...
分类:
其他好文 时间:
2018-10-25 14:19:17
阅读次数:
149
字符串方法 1.capitalize 句首字母大写(其他转化为小写) 2.title 全部单词首字母大写(其他转化为小写) 3.upper 全部字母大写 4.lower 全部字母小写 5.count 计数,统计参数个数 6.find,index 查找索引 7. str[起始位置:终止位置:方向+步长 ...
分类:
编程语言 时间:
2018-10-24 16:06:50
阅读次数:
160
Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2 ...
分类:
其他好文 时间:
2018-10-24 10:56:01
阅读次数:
142
本篇主要讲述利用MTCNN的预训练模型得到原图中人脸的分割,代码如下:https://github.com/davidsandberg/facenet 结合博客https://blog.csdn.net/FortiLZ/article/details/81396566?tdsourcetag=s_p ...
分类:
其他好文 时间:
2018-10-22 20:22:36
阅读次数:
608
浏览器具有解释JavaScript的功能 在HTML中可以将JavaScript/JS的代码写在head中,被script标签所包裹。当浏览器解释HTML时,遇到style标签时,按照CSS规则解释,遇到Script标签时,按照JavaScript的语法规则解释。 引入JavaScript代码,类似 ...
分类:
Web程序 时间:
2018-10-22 16:44:43
阅读次数:
196
类数组对象:拥有一个 length 属性和若干索引属性的对象 var array = ['name', 'age', 'sex']; var arrayLike = { 0: 'name', 1: 'age', 2: 'sex', length: 3} 读写 console.log(array[0] ...
分类:
编程语言 时间:
2018-10-22 13:04:58
阅读次数:
110
In this lesson, you will learn how to extend styles from one styled-component to another in a React app. This is helpful when you have two styled-comp ...
分类:
其他好文 时间:
2018-10-21 10:19:03
阅读次数:
111
JavaScript常用函数 常规函数 (1)alert函数:显示一个警告对话框,包括一个OK按钮。(alert("输入错误");) (2)confirm函数:显示一个确认对话框,包括OK、Cancel按钮。 (confirm("确定否!");) (3)escape函数:将字符转换成Unicode码 ...
分类:
编程语言 时间:
2018-10-20 21:02:45
阅读次数:
224
//把一个字符串里的所有单词的第一个字符转换为大写 用到 了字符串方法split slice join charAt toUpperCase var str = 'ni hao ma!' function getUpper(str){ var words = str.split(' '); for( ...
分类:
其他好文 时间:
2018-10-19 23:44:36
阅读次数:
147