摘要: http://www.cnblogs.com/Bonker/p/3584707.html 阅读全文
posted @ 2016-01-09 12:23 阿文的博客 阅读(155) 评论(0) 推荐(0) 编辑
摘要: ```cpp string_1 = "Camelot" string_2 = "place" print("float:%lf. int:%d string:%s." % (3.14,123, string_2)) print("I am a {type}".format(type=11.1)) my_name = "Michael" print("Hello, my name is {nam... 阅读全文
posted @ 2016-01-09 10:04 阿文的博客 阅读(667) 评论(0) 推荐(0) 编辑
摘要: ```cpp KeyPress Test! Press follow key; ``` 阅读全文
posted @ 2016-01-08 21:13 阿文的博客 阅读(1867) 评论(0) 推荐(0) 编辑
摘要: ```c 授权命令GRANT 语句的语法如下: GRANT privileges (columns) ON what TO user IDENTIFIEDBY "password" WITH GRANT OPTION 对用户授权 mysql>grant rights on database.* to user@host identified by "pass"; 例1: 增加一个用... 阅读全文
posted @ 2016-01-06 19:55 阿文的博客 阅读(334) 评论(0) 推荐(0) 编辑
摘要: JavaScript 提供了扩展内置对象定义的功能。 使用prototype关键字,可以向内置对象添加属性和方法。 代码如下 页面效果如下 阅读全文
posted @ 2016-01-01 22:57 阿文的博客 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 题目大意:给出五种硬币,价值分别为 1,5,10,25,50,。当给出一个价值时,求出能够组合的种数(每种硬币可以用无限次)。 思路:完全背包, dp[i][j]表示总数 i 能够被表示的种数。状态转移方程为 dp[i][j] = dp[i k v[j]][j 1] (k = 0,1,2,3...... 阅读全文
posted @ 2015-12-21 16:27 阿文的博客 阅读(240) 评论(0) 推荐(0) 编辑
摘要: ``` #code.jsp # loginForm.jsp welcome account: password: code: 看不清,换一张 ... 阅读全文
posted @ 2015-12-14 17:35 阿文的博客 阅读(883) 评论(1) 推荐(0) 编辑
摘要: ```cpp /** * 获取随机字母数字组合 * * @param length * 字符串长度 * @return */ public static String getRandomCharAndNumr(Integer length) { String str = ""; Random random = new Ra... 阅读全文
posted @ 2015-12-14 15:09 阿文的博客 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 原因很简单: 注意更改from 属性啊!否则为null! 因为你用jspsmartuploadsmart时post请求 的格式是multipart/form data,即enctype="multipart/form data" ,这和默认form提交是不同的 不同主要体现在:传送到服务器端的数据组... 阅读全文
posted @ 2015-12-08 21:56 阿文的博客 阅读(1919) 评论(0) 推荐(0) 编辑
摘要: ```cpp mysql--语法: SELECT * FROM table LIMIT [offset,] rows | rows OFFSET offset --举例: select * from table limit 5; --返回前5行 select * from table limit 0,5; --同上,返回前5行 select * from table limit 5,1... 阅读全文
posted @ 2015-12-03 14:32 阿文的博客 阅读(245) 评论(0) 推荐(0) 编辑