摘要: state = conn.prepareStatement("update book set name=? and zuoze =? ,and jianjie=? where id=? "); 在修改语句里 将and 改为 逗号 , 就可以了 阅读全文
posted @ 2020-04-03 19:34 张利杰j 阅读(388) 评论(0) 推荐(0) 编辑
摘要: action HttpServletRequest、HttpSession和ServletContext Struts2对这个三个对象用Map进行了封装,我们就可以使用Map对象来存取数据了。 ActionContext actionContext = ActionContext.getContex 阅读全文
posted @ 2020-04-03 15:46 张利杰j 阅读(153) 评论(0) 推荐(0) 编辑
摘要: from math import log import operator """ 函数说明:计算给定数据集的经验熵(香农熵) Parameters: dataSet:数据集 Returns: shannonEnt:经验熵 Modify: 2018-03-12 """ def calcShannonE 阅读全文
posted @ 2020-04-03 11:37 张利杰j 阅读(157) 评论(0) 推荐(0) 编辑
摘要: web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLS 阅读全文
posted @ 2020-04-03 11:11 张利杰j 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 我在使用struts2框架的时候,封装实体类,报Could not create and/or set value back on to object错误,经过网上查询得知 struts2的model driven机制采用了反射机制反射机制要求用户类必须要有无参构造方法当一个类没有构造方法时,jav 阅读全文
posted @ 2020-04-03 10:59 张利杰j 阅读(186) 评论(0) 推荐(0) 编辑