11 2017 档案

摘要:java取整和java四舍五入方法 import java.math.BigDecimal; import java.text.DecimalFormat; public class TestGetInt{ public static void main(String[] args){ double 阅读全文
posted @ 2017-11-29 10:22 软测小生 阅读(2354) 评论(0) 推荐(0)
摘要:The web application [ ] registered the JDBC driver [net.sourceforge.jtds.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver 阅读全文
posted @ 2017-11-28 13:53 软测小生 阅读(1535) 评论(0) 推荐(0)
摘要:python中的高阶函数 高阶函数就是 变量名指向函数,下面代码中的变量abs其实是一个函数,返回数字的绝对值,如abs(-10) 返回 10 python把函数作为参数 利用add(x,y,f)函数计算: python中map()函数 map()是 Python 内置的高阶函数,它接收一个函数 f 阅读全文
posted @ 2017-11-03 10:28 软测小生 阅读(359) 评论(0) 推荐(0)
摘要:在学习的过程中,又发现了一个新的知识点,java 中的冒号(:),可以这么来用:用作跳转标记。解释如图中红色注释。下面来回忆一下另外三种用法: 其一: 用来遍历 String[] abc = new String[3]{"a","b","c"}; for (String str : abc){ Sy 阅读全文
posted @ 2017-11-03 10:25 软测小生 阅读(12782) 评论(0) 推荐(2)