public static boolean scale(String imagepath,String newpath){ // 返回一个 BufferedImage,作为使用从当前已注册 ImageReader 中自动选择的 ImageReader 解码所提供 File 的结果 BufferedImage image=null; try { image = ImageIO.read(new File(imagepath)); } catch (IOException e) { System.out.println("读取图片文件出错!"+e.getMessa ...
  • 15:24
  • 浏览 (45)
  • 评论 (0)
2007-04-30

我对acts as tree的理解及应用

关键字: acts as tree
最近在看敏捷一书,把我对Acts as tree一节的理解写下。 前提: 手头上有《应用rails进行敏捷Web开发》一书 正文: 对书上已经提到就不重复了,在现实中树型结构的表是很多,我这里用家庭做一个例子。 表结构: ID Parent_id name People_count 0 null root 0 Mysql脚本 DROP TABLE IF EXISTS `databasename`.`people`; CREATE TABLE ` databasename `.`peoples` ( `id` int(11) NOT NULL auto_increment, `p ...
xusaomaiss
搜索本博客
博客分类
最近加入圈子
最新评论