Rzsz
rzsz 替换工具
git attributes
关于 git attributes 的误解说明
gitattributes 的作用:
- 在提交 commit 时,把本地的 换行符替换成和 已有 commit 中一致
- git clone 时,换成和本机兼容的换行符
gitattributes 没有的功能:
把已有 commit 中文件的换行符替换成新规定的换行符
pyproject file
模板
| |
pylsp + pdm
pdm add -dG lsp python-lsp-server python-lsp-ruff python-lsp-black pylsp-mypy pylsp-rope
Returns
参考
bind 和 map
bind 和 map_ (returns.pointfree)
bind
- 作用:把入参类型改成 Container 类型
参数:
- Containner[value] -> Contaner[value]
- Containner[value] -> value
让入参可以接收 Containner[value] 类型
- 即,把原始函数
fn(value) -> value转换成new_fn(Container[value])-> value
- 即,把原始函数
map