小行星

热爱平淡,向往未知


  • 首页

  • 分类

  • 归档

  • 关于

  • 阅读排行

  • 搜索

python对应pip

发表于 2018-04-Tue | 阅读次数:
1
python -m pip install

git submodule重新使用

发表于 2018-04-Tue | 阅读次数:

If you haven’t already run git rm --cached path_to_submodule (no trailing slash) as well as rm -rf path_to_submodule, do that!

Then:

  1. Delete the relevant lines from the .gitmodules file. e.g. delete these:
1
2
3
[submodule "path_to_submodule"]
path = path_to_submodule
url = https://github.com/path_to_submodule
  1. Delete the relevant section from .git/config. e.g. delete these:
1
2
[submodule "path_to_submodule"]
url = https://github.com/path_to_submodule
  1. rm -rf .git/modules/path_to_submodule

Then, you can finally:

1
git submodule add https://github.com/path_to_submodule

命令行翻墙

发表于 2018-04-Tue | 阅读次数:

brew install取消更新

发表于 2018-04-Tue | 阅读次数:
1
HOMEBREW_NO_AUTO_UPDATE=1 brew install proxychains-ng

python编程101

发表于 2018-04-Tue | 阅读次数:
  1. 不使用obj 和 objs

sshd配置

发表于 2018-04-Tue | 阅读次数:

sudo vim /etc/ssh/sshd_config
去掉注释:

1
2
3
4
5
RSAAuthentication yes # 启用 RSA 认证

PubkeyAuthentication yes # 启用公钥私钥配对认证方式

AuthorizedKeysFile .ssh/authorized_keys # 公钥文件路径(和上面生成的文件同)

/bin/systemctl restart sshd.service

tqdm is not callable

发表于 2018-04-Tue | 阅读次数:

TypeError: ‘module’ object is not callable

1
2
tqdm.tqdm
from tqdm import tqdm

pycharm快捷键

发表于 2018-04-Mon | 阅读次数:

Pycharm 快捷键
⇧⌘F/⇧⌘R: 全局搜索/替换:

⇧⌘A:执行一些action(git pull)

Shift-shift 文件名, 类名, 方法名

Alt+Enter: 自动import

Alt + Left|Right: 移动光标到上一次编辑或者返回移动之前的位置.

Ctrl+x: 不用选择, 直接删除整行代码

Alt + 鼠标 or Shift + Crtl + Alt + 鼠标: 选择多处进行同时编辑,

Ctrl+Tab: 和chrome一样的切换标签

pyenv python地址

发表于 2018-04-Mon | 分类于 长文 | 阅读次数:

因为pycharm配置的需要,所以找出pyenv里python的地址

在pyenv 里面直接敲,没有发现python的地址

阅读全文 »

python参数和dict转换

发表于 2018-04-Sun | 阅读次数:
1
2
3
4
5
def fun(**para):
b = print (para)


call(**b)
1…434445…59
fangyh

fangyh

最爱的是那苍穹之外的浩渺宇宙

588 日志
4 分类
66 标签
© 2020 fangyh
由 Hexo 强力驱动
|
主题 — NexT.Mist v5.1.3
|本站总访问量次