摘要: Boolean value : True / False and or not if 语句 if <condition>: <statement> <statement> if <condition>: <statement>elif <condition>: <statement>else : < 阅读全文
posted @ 2022-02-24 19:57 liankewei123456 阅读(22) 评论(0) 推荐(0) 编辑
摘要: def <name>(<formal parameters>) : return <expression> eg def add(num1, num2): return num1 + num2 多行时缩进规则类似 haskell 调用函数的时候,函数会自己新建 local frame 在局部 loo 阅读全文
posted @ 2022-02-24 19:03 liankewei123456 阅读(30) 评论(0) 推荐(0) 编辑