比如有一个字符串: 现在需要把它分割为int型数组: 方法有很多种。这里讲两个有意思的 嗯,就酱~ 参考https://www.cnblogs.com/tdalcn/p/7201409.html ...
分类:
编程语言 时间:
2018-12-26 22:25:58
阅读次数:
412
*取整、取最近的整数int_a := int(a) //取整数部分,结果是3round_a := round(a) //将输入元组转换为最接近的整数元组,结果是3 *四舍五入,结果是字符串g0 := a$'.0f' //保留0位,结果是'3'g1 := a$'.1f' //保留1位,结果是'3.5' ...
分类:
其他好文 时间:
2018-12-25 15:52:21
阅读次数:
149
最近尝试了一次while跑数, declare sysdataend date:=system-1; startdata date:=to_date('20181214','YYYYMMDD'); begin while(startdata<sysdataend) loop -- 需要执行循环的过程 ...
分类:
其他好文 时间:
2018-12-23 15:22:32
阅读次数:
123
http://acm.hdu.edu.cn/showproblem.php?pid=2955 Problem Description The aspiring Roy the Robber has seen a lot of American movies, and knows that the b ...
分类:
其他好文 时间:
2018-12-21 19:45:24
阅读次数:
166
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"x ...
分类:
编程语言 时间:
2018-12-20 00:58:18
阅读次数:
149
MINUS SELECT count(id) FROM householdstaffs s WHERE s.idcardno in( SELECT h.idcardno FROM householdstaffs h WHERE h.orginternalcode like '1.1.9.9.%' M ...
分类:
其他好文 时间:
2018-12-19 15:38:15
阅读次数:
419
958. Check Completeness of a Binary Tree Given a binary tree, determine if it is a complete binary tree. Definition of a complete binary tree from Wik ...
分类:
其他好文 时间:
2018-12-16 14:41:11
阅读次数:
137
首先,先放上编写这款游戏的指导方针: 自顶向下:从很抽象的概念入手,逐渐细化,直到概念变成具体的可用代码实现的东西。 ''' 游戏名字叫《来自Percal25号行星的哥顿人》,是一款空间冒险游戏。 游戏内容:外星人入侵了宇宙飞船,我们的英雄需要通过各种房间组成的迷宫, 打败遇到的外星人,这样才能通过 ...
分类:
其他好文 时间:
2018-12-13 23:25:48
阅读次数:
232
1. 编写实现ImportSelector的类 2. 编写配置类 3. 测试类 4. 测试结果 5. ImportSelector用于向容器中导入指定的类。 ...
分类:
编程语言 时间:
2018-12-13 16:19:03
阅读次数:
192
由于图片的加载是在dom加载完成之后进行的,于是,在手机端浏览网页时,经常会看到页面刚打开时很多内容叠在一起,当图片加载完成后,页面会由于图片加载完成出现明显的抖动 针对这个问题,有以下几种解决方案 媒体查询+px rem vm padding 媒体查询+px 移动端设备种类繁多,媒体查询固然精准, ...
分类:
移动开发 时间:
2018-12-12 19:06:53
阅读次数:
249