Django_mosh
Django mosh
shell django-admin
django-admin startproject <proj name> .
run server
python manage.py runserver
app 可以通过 proj 初始 settings.py 集成
Django mosh
shell django-admin
django-admin startproject <proj name> .
run server
python manage.py runserver
app 可以通过 proj 初始 settings.py 集成
ref: 卡特兰数(Catalan number)(二) - 知乎 (zhihu.com), stackoverflow 专栏
给定节点数 n,二叉树的种类数? 卡塔兰数 C(n).
一些细节和思考:
Q: wait for reading the source code and thinking
A: after reading the source code and thinking
jdbc: java database connectivity
jdbc 要先加载驱动,由各个数据库实现
jpa 通过 orm 框架生成 sql,再经过 jdbc 操作数据库
getBean 方法:
getBean 是 ApplicationContext 接口中的一个方法,用于从 Spring 的 IoC 容器中显式地获取 Bean 实例。
它通常在需要手动获取 Bean 时使用,比如在非 Spring 管理的类中或者在某些特定的场景下,你想要直接从容器中获取 Bean 而不是通过注入。
使用 getBean 方法时,你需要知道 Bean 的名称或类型,并在调用时指定这些信息。
示例代码:
linking 复习
• efficiency: small change requires complete recompilation
• modularity: hard to share common functions (e.g. printf)
seperate compilation: separately compiled relocatable object files
reloc object files -> executable object file
Linking is the process of: collecting and combining various pieces of code and data into a single executable file
Executable file: Can be loaded (copied) into memory and executed
ts: 带静态类型的 js
tsc --init
tsconfig.json
重要配置
{
"compilerOptions": {
"target": "es2016", // 指定编译器
观前提示:
- 默认读者有基础的 js, ts, html 基础, 其中 html 和 js 在MDN Web Docs上看入门教程即可,ts 可以看mosh 的视频或者 google 一下 typescript tutorial 即可;
- 本人水平有限,错漏和不足之处敬请谅解
- 本笔记对应的视频: CodeWithMosh - React 18 for Beginners对应初级部分;code with mosh - React: Intermediate Topics对应进阶部分;相关代码可以在 github 找到。
gamehub: react + ts + ...