/** * 获取对象中的字段 * @param obj which object you want to find filed * @param fieldName the field name you want to find * @return the field you want to find * @throws Throwable * @throws NoSuchField
;递归 (defun my-fib (x) (cond ((= x 0) 0) ((= x 1) 1) (t (+ (my-fib (- x 1)) (my-fib (- x 2)))))) (defun my-fib-iter (a b count) ;(format t "a:~a and b:~a and count:~a ~%" a b count)
附上源码地址 https://github.com/livvyguo/app-blog
书中的scheme实现如下:(define (square x) (* x x)) (define (abs x) (if (< x 0) (- x) x)) (define (average x y) (/ (+ x y) 2)) (define (improve guess x) (average guess (/ x guess))) (define (
spring的配置文件中加入以下内容<!-- MyBatis配置 --> <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"> <property name="dataSource" ref="c3p0DataSource" />
工作之余,用java写了一个导出数据库结构的小工具
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号