Hsia的学习笔记
霞云,驾~
晒网人
展开
-
【MIT 6.0001 课程笔记】Lecture 4. Decomposition, Abstraction, Functions
Lecture 4. Decomposition, Abstraction, Functions文章目录Lecture 4. Decomposition, Abstraction, Functions随堂阅读资料作业正式笔记一个好的programme一个例子——Projector投影仪抽象与分解通过分解来构造结构通过抽象来压缩不必要的细节函数 FunctionsVariable Scope 变量阈return vs. printreturnprint返回值的特点scope的特性一个学习网站随堂阅读资料原创 2020-12-06 20:32:30 · 282 阅读 · 0 评论 -
【MIT 6.0001 课程笔记】Lecture 3. String Manipulation, Guess and Check, Approximations, Bisection
Lecture 3. String Manipulation, Guess and Check, Approximations, Bisection文章目录Lecture 3. String Manipulation, Guess and Check, Approximations, Bisection随堂阅读资料作业正式笔记String Manipulation 字符串操作Slice 切片无法改变性Loop Recap 在Loop中的可遍历/迭代对象字符串的loopGuess-and-Check 穷举原创 2020-12-04 16:07:24 · 298 阅读 · 0 评论 -
【MIT 6.0001 课程笔记】Problem Set 1
Problem Set 1文章目录Problem Set 1基本目标作业A House Hunting要求提示参考代码作业B Saving, with a raise要求提示参考代码作业C Finding the right amount to save away要求提示参考代码参考资料基本目标A Very Simple Program: Raising a number to a power and taking a logarithmThis problem set will introduc原创 2020-11-29 20:50:31 · 1885 阅读 · 0 评论 -
【MIT 6.0001 课程笔记】Lecture 2. Branching and Iteration
Lecture 2. Branching and Iteration文章目录Lecture 2. Branching and Iteration随堂阅读资料作业正式笔记Strings 字符串类input/outputprint语法input语法对比操作针对布尔值的逻辑操作符对比示例条件判断Control Flow - Branching 控制流之分支(if语句)缩进的重要性“=” vs “==”小例子:塞尔达传说——迷失丛林Control Flow - while loops 控制流之循环(while语句原创 2020-11-29 12:57:33 · 383 阅读 · 0 评论 -
【MIT 6.0001 课程笔记】Problem Set 0
Problem Set 0文章目录Problem Set 0基本目标作业要求提示参考代码参考资料基本目标A Very Simple Program: Raising a number to a power and taking a logarithmThe goal of this programming exercise is to make sure your python and numpy installations are correct, to get you more comfort原创 2020-11-25 16:43:14 · 374 阅读 · 0 评论 -
【MIT 6.0001 课程笔记】Lecture 1. What is computation?
Lecture 1. What is computation?文章目录Lecture 1. What is computation?随堂阅读资料作业正式笔记Topics 课程主题What does a computer do 计算机功能不同类型的知识Declarative Knowledge 陈述性知识Imperative Knowledge 程序性知识更具体的例子What is a recipe? 怎样才算一个配方(程序性知识)?计算机的特性计算机的作用计算机的结构Stored Program Comp原创 2020-11-25 16:02:33 · 275 阅读 · 0 评论