随笔分类 - python
摘要:CS61A pyhton 高阶函数 A function that either: Takes another function as an argument Returns a function as its result All other functions are considered fi
阅读全文
摘要:Boolean value : True / False and or not if 语句 if <condition>: <statement> <statement> if <condition>: <statement>elif <condition>: <statement>else : <
阅读全文
摘要:def <name>(<formal parameters>) : return <expression> eg def add(num1, num2): return num1 + num2 多行时缩进规则类似 haskell 调用函数的时候,函数会自己新建 local frame 在局部 loo
阅读全文