随笔分类 -  CS61A Spring 2018

摘要:CS61A Spring 学习笔记 原文地址: http://composingprograms.com/pages/28-efficiency.htmlMeasuring Efficiency计算一个程序需要多长时间和多少的内存是很困难的。一个可行的方式就是... 阅读全文
posted @ 2018-07-04 20:40 Siucaan 阅读(520) 评论(0) 推荐(0)
摘要:笔记摘录NonloaclA variable is nonlocal to a frame if it is defined in the environment that the frame belongs to but not the frame itself, ... 阅读全文
posted @ 2018-06-14 10:36 Siucaan 阅读(1263) 评论(0) 推荐(0)
摘要:Object-Oriented Programming1.Defining Classesclass : When a class statement is executed, a new class is created and bound to in th... 阅读全文
posted @ 2018-06-12 09:46 Siucaan 阅读(281) 评论(0) 推荐(0)
摘要:listLists are Python data structures that can store multiple values.list comprehensions[ for in if ]The syntax is designed to read l... 阅读全文
posted @ 2018-06-08 10:45 Siucaan 阅读(1021) 评论(0) 推荐(0)
摘要:CS61A Spring 2018 原文地址:http://composingprograms.com/pages/24-mutable-data.html字典的一个简单应用:模拟银行账户def account(initial_balance): de... 阅读全文
posted @ 2018-05-31 09:09 Siucaan 阅读(231) 评论(0) 推荐(0)
摘要:CS61A Spring 笔记 参考: https://inst.eecs.berkeley.edu/~cs61a/sp18/lab/lab02/Lambda ExpressionsLambda Expressions is one-line functio... 阅读全文
posted @ 2018-05-30 22:20 Siucaan 阅读(3444) 评论(0) 推荐(0)
摘要:CS61A Spring 2018 原文地址:http://composingprograms.com/pages/24-mutable-data.html 视频地址 : https://www.youtube.com/watch?v=Dd2Ax... 阅读全文
posted @ 2018-05-30 22:14 Siucaan 阅读(388) 评论(0) 推荐(0)
摘要:原文链接:http://composingprograms.com/pages/23-sequences.htmlWhat is sequences?A sequence is an ordered collection of values. It is a coll... 阅读全文
posted @ 2018-05-25 09:23 Siucaan 阅读(443) 评论(0) 推荐(0)