关于这个系列
- 纯学码笔记集合
- 搬运 & 汇总 & 精炼学习期间的参考资料 ( & 碎碎念 )
- 用于自查 & 记录成长
- 代码和知识点基本🈚️原创🙈🙊 搬运都会注明出处
关于本篇
- 集合一些在学码过程中遇到的其他知识瓶颈
- 持续更新ing
环境
Mac 系统的环境比较封闭,在最初配环境的过程中遇到了许多小问题,这点比较崩溃,需要比较耐心地去比照各种教程,然后不断尝试
Mac & C++
CLion直接一步结束了对编程一窍不通的初学者配环境时的懵逼状态,安装之后就可以直接使用了(学生可以使用教育优惠注册账户免费使用(JetBrains Special Offers) ; Visual Studio for Mac 目前不支持 C++ ; Visual Studio Code 需要配环境,但我最终也没配出来👀
Mac & Python
- PyCharm:(作为一个强迫症,在安装了CLion以后)最开始安装了 Pycharm,pip install 相关的操作都可以通过 pycharm 的 preferences 中的 Python Interpreter 安装(如下图);但因为 pycharm 的 python 版本和我的 mac 自带的 python 版本始终不一致,所以在 tensorflow 的相关安装中也遇到了一些问题,最终放弃了 PyCharm
- JupyterLab & Jupyter Notebook:通过 Anoconda (下载地址) 安装后直接 launch 即可;numpy,pandas,tensorflow 等通过运行 mac terminal 的 pip install 完成即可
调试
CLion
官网教程 ➡️ www.jetbrains.com/zh-cn/clion…
- 设置断点
- 此时会显示执行此命令前的数据值,点击后可以添加为inline watch
- 在右上角进入Debug模式
- 在Variable区域可以查看变量的数值:
- 在左下角进行操作,从左至右依次为:
step over - 会跳过被调用的函数
Steps over the current line and takes you to the next line even if the current line includes function calls. The calls are skipped, and you move straight to the next line of the caller.
step into - 将进入被调用的函数内监测
Steps inside the code of a called function.
force step into
Steps into the function even if it is skipped by the regular Step Into by default.
step out - 离开被调用的函数,回到调用函数的位置
Steps out of the current function and takes you to the code the caller.
run to cursor
Continues the execution until the position of the caret is reached.
Pycharm
JupyterLab
数学
- 线性代数入门:blog.csdn.net/linxilinxil…
- Softmax函数入门:zhuanlan.zhihu.com/p/105722023