您的位置:首页 > 编程语言 > Python开发

Berkeley's SICP in python(一)

2015-07-03 11:19 579 查看
一 Building abstractions with Functions

1 Introduction

所有的计算都是表示信息,指定逻辑并处理它,设计抽象和管理这一逻辑的复杂性。

A language isn’t something you learn so much as something you join

Assignment statement :赋值语句

compound expressions:复合表达式

The design and implementation of interpreters:解释器的设计与实现

Incremental testing, modular design, precise assumptions, and teamwork are themes that persist throughout this course.

Hopefully, they will also persist throughout your computer science career.

As you become familiar with the Python language and vocabulary, this documentation will become a valuable reference source。

Don’t repeat yourself is a central tenet of software engineering。

Docstrings are conventionally triple quoted. The first line describes the job of the function in one line. The following lines can describe arguments and clarify the behavior of the function.



(unit testing:>>>(space)sum_naturals(10));



Exhaustive unit testing is a hallmark of good program design.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  python 设计