try-except

notion image
这里展示了 python 的报错机制
相比于正常的“被动报错”,这里可以返回遇到具体错误时其他的出题情况,避免一些 bug

Programming Languages

A computer typically executes programs written in many different programming languages.
Machine languages: statements are interpreted by the hardware itself
  • A fixed set of instructions invoke operations implemented by the circuitry of the central processing unit (CPU)
  • Operations refer to specific hardware memory addresses; no abstraction mechanisms
High-level languages: statements & expressions are interpreted by another program or compiled (translated) into another language
  • Provide means of abstraction such as naming, function definition, and objects
  • Abstract away system details to be independent of hardware and operating system

Pharsing 解析

notion image
对于 scheme 表达式,首先把它分解成词元,然后再根据语法用 python 中自己定义好的 Pair 类进行组合
Loading...
昊卿
昊卿
一个普通的干饭人🍚
最新发布
大一上学期总结
2025-3-9
4.1 多层感知机
2025-3-7
3.4 softmax 回归
2025-3-5
3.3 线性回归的简洁实现
2025-3-5
3.2 线性回归的从零开始实现
2025-3-5
3.1 线性回归
2025-3-5