0%
2k屏幕开启HiDPI
Posted on Edited on Views:
python 闭包
Posted on Edited on Views:
1 | def two_type(t=1): |
python trick
Posted on Edited on Views:
1 | def make_averager(): |
对于数字,字符串,元祖 不可变类型来说,只能读取不能更新。 重新绑定会隐式创建局部变量count.
只有可变变量是可以的。
或者使用nonlocal count, total
python 装饰器
Posted on Edited on Views:
1 | def use_logging(func): |
1 | class Foo(object): |
jupyter 复制sublime代码 indent indications
Posted on Edited on Views:
解决:
cmd+], cmd+[
iterm2 更多历史
Posted on Edited on Views:
There is an option “unlimited scrollback buffer” which you can find under Preferences > Profiles > Terminal or you can just pump up number of lines that you want to have in history in the same place.
jupyter notebook 添加python3
Posted on Edited on Views:
1 | conda create -n py36-test python=3.6 |
命令不存在
Posted on Edited on Views:
1 | export PATH=~/anaconda2/bin:$PATH |
mac无法使用shadowsocks
Posted on Edited on Views:
把 ~/Library/Preferences 里的 com.qiuyuzhou.ShadowsocksX-NG.plist 和 ~/Library/Application Support 里的 ShadowsocksX-NG/ 删掉.