(define x (list (list 1 2) (list 3 4)))
x
(car (cdr x))
(car x)
(define (deep-reverse items)
(display items)
(newline)
(cond
((null? items) ())
(( not (pair? items)) items)
( (pair? items)
(list (deep-reverse (car (cdr items)))
(deep-reverse (car items))
)
)
)
)
(deep-reverse x)
(define x (list (list 1 2) (list 3 4)))
(define (fringe items)
(cond
((null? items) ())
((not (pair? items)) (list items) )
(else
(append (fringe (car items)) (fringe (car (cdr items))))
)
)
)
(fringe x)
(define (left-branch items)
(car (car (cdr items)))
)
(define (right-branch items)
(car (cdr (car (cdr items))))
)
(define (branch-length items)
(car items)
)
(define (branch-structure items)
(car (cdr items))
)
(branch-length x)
(branch-structure x)
(left-branch x)
(right-branch x)
(define (total-weight items)
(cond
((not (pair? items)) 0)
(else (+ (branch-length items) (+ (branch-length (left-branch items)) (branch-length(right-branch items))) ))
)
)
(total-weight z)
分享到:
相关推荐
sicp in python 中文版 sicp in python 中文版 sicp in python 中文版 !!!download>>>https://github.com/wizardforcel/sicp-py-zh
SICP中文第二版SICP中文第二版SICP中文第二版SICP中文第二版SICP中文第二版
SICP-Python版本
SICP 使用的scheme解释器 以前叫DrScheme
sicp-in-python(中文版+英文版)PDF 背景. SICP 全称Structure and Interpretation of Computer Programs,翻译过来叫《计算机程序的构造和解释》使用python
sicp 2.2.4节图形语言的racket程序包,配置路径,C:\Users\Administrator\AppData\Roaming\Racket
Python SICP epub版本,很适合学习抽象的思想,用Python版本比lisp更实用
SICP 解题集
SICP CHINESE ENGLISH THE SECOND EDITION SICP CHINESE ENGLISH THE SECOND EDITION
SICP 习题答案 计算机程序的构造和解释 1-3章 习题答案
sicp in python 中文版 sicp in python 中文版 sicp in python 中文版 download : https://github.com/wizardforcel/sicp-py-zh
SICP习题解答,主要第一章的内容习题答案
资源来自pypi官网。 资源全名:sicp-0.0.1b102.dev4.tar.gz
资源名称:sicp 和 操作系统:精髓与设计原理第七版资源截图: 资源太大,传百度网盘了,链接在附件中,有需要的同学自取。
经典书籍《计算机程序的构造与解释》,UCB热门课程CS61a的官方教材
#SICP SICP解决方案
sicp 2ed高清pdf,以及相对应的mit课程资料及习题答案打包,中文版的视频在这里http://i.youku.com/i/UNTcxODk3ODQw/videos?spm=a2hzp.8244740.0.0
超声高速铣削和高速铣削高体分SiCp/Al MMCs的粗糙度研究,向道辉,岳广喜,结合正交分析和单因素分析对高体分SiCp/MMCs在超声高速和高速铣削两种实验条件下的粗糙度进行分析,研究铣削速度、进给量和切削深度
资源分类:Python库 所属语言:Python 资源全名:sicp-0.0.1b102.dev6.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059