1.使用占位符为真实值预留位置,并指定格式 我们还可以用词典来传递真实值。如下: 常用格式符 %s:字符串 %d:十进制整数%b:二进制整数%x:十六进制整数%e:指数基底为e %E:基底为E %f:浮点数 2.使用format() 参考http://www.cnblogs.com/hongten/ ...
分类:
编程语言 时间:
2017-06-08 14:58:12
阅读次数:
254
今天做一个关于人员信息修改的页面时,我用foreach获取数据库数据时发现,用if else判断输入的内容时,会一个一个的做对比,导致错误提醒时会弹出与数据库内容行数相同条的提醒,最后发现将数据直接命为全局变量便轻松的解决了这个问题. 首先获取到input写入的内容,用来和数据库数据作对比,如果相同 ...
分类:
其他好文 时间:
2017-06-08 14:57:08
阅读次数:
249
结果集: 2.验证码的生成和验证 文件上传和修改时回显 上传: 图片的回显: 因为 else { Customer find11 = customerService.findbyId(customer.getCust_id());//对象find11存入到缓存区 String cust_image ...
分类:
其他好文 时间:
2017-06-08 14:55:41
阅读次数:
186
从ROS端如果要发送消息给mbed, 聪明的我知道了, 估计要用订阅者, 让mbed去订阅一个制定的topic, 问题来了, 能否订阅两个topic? 稍后再试. mbed上面是这样的: ros这边: 测试了一下, 多个订阅者也是ok的, 不过会不会在ROS端看起来比较乱? ...
分类:
其他好文 时间:
2017-06-08 14:54:38
阅读次数:
145
This document describes the installation of PostgreSQL using the source code distribution. (If you are installing a pre-packaged distribution, such as... ...
分类:
数据库 时间:
2017-06-08 14:52:35
阅读次数:
291
public class *** { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("请输入用户名:"); String xy = input.n ...
分类:
编程语言 时间:
2017-06-08 14:51:30
阅读次数:
145
public int Remove(int id) { T u1 = context.Set().Find(id); //context.Set().Remove(u1); //return context.SaveChanges(); context.Entry(u1).Property("IsD... ...
分类:
其他好文 时间:
2017-06-08 14:50:44
阅读次数:
132
题目: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transac ...
分类:
其他好文 时间:
2017-06-08 14:07:04
阅读次数:
208
-- 测试手机号 call P_Base_CheckLogin('15584463676'); -- 测试登录名 call P_Base_CheckLogin('sch000001') -- 测试身份证号 call P_Base_CheckLogin('080428402304032042') --... ...
分类:
数据库 时间:
2017-06-08 13:59:09
阅读次数:
380
一、环境 阿里云 Ubuntu 12.04.5 LTS tomcat和java都是阿里云默认的7的版本,如下图 二、问题 部署后./startup.sh启动tomcat 之后外部访问http://ip:8080/无法访问,之后去查看防火墙 关闭了Ubuntu下面的防火墙 再次访问http://ip: ...
分类:
其他好文 时间:
2017-06-08 13:07:25
阅读次数:
245