自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 树(Tree)数据抽象

定义:A tree has a root label and a sequence of branches. Each branch of a tree is a tree. A tree with no branches is called a leaf. Any tree contained within a tree is called a sub-tree of that tree (such as a branch of a branch). The root of each sub-tree

2020-06-24 18:50:29 529

原创 Pytho中function call的执行顺序

看到一篇为文章讲的不错,主要顺序是:Evaluate operatorEvaluate operand(s)Apply operator to operandsa. Create a new frameb. Create arguments as local variablesc. Execute the body of the function这也解释了我第一篇文章中为什么不能用if_function替代 if else statement的问题def if_function(c,t,

2020-06-17 20:15:47 263

原创 HW02 lambda函数的一个问题

阐述一个有关lambda函数的问题首先定义accumulate函数def accumulate(combiner, base, n, term): """Return the result of combining the first n terms in a sequence and base. The terms to be combined are term(1), term(2), ..., term(n). combiner is a two-argument com

2020-06-08 22:35:09 473

原创 HW1 Python中call expression的执行顺序

此笔记用 个例子解释python中call的执行顺序和相关environment的知识第一个例子来源于HW01的Q4Q4: If Function vs StatementLet’s try to write a function that does the same thing as an if statement.def if_function(condition, true_result, false_result): """Return true_result if condi

2020-06-06 21:58:53 1328

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除