python 依赖包ERR
- 关于win-Python中
from Crypto.Cipher import AES
这个死活报错的问题
C:\Python2\Lib\site-packages路径下文件夹crypto的首字母改成大写,即是Crypto.
- editdistance 乱码
cpp文件去掉日文注释
- Socket Error启动乱码:
port占用!!kill进程。
- windows下python2.7 安装pycrypto库报错 https://www.cnblogs.com/zhaijiahui/p/10940476.html
pip install M2cryptoWin64.
- logging: raise ValueError('Unable to configure handler ')
log路径不对
- 安装mysqlclient报错
mysql_config: command not found
先安装mysql
- 安装talos-python3
先安装snappy
- Ssh relay
vim ~/.ssh/config\
Host relay
HostName relay.XXXX.com
ServerAliveInterval 300
User "YourUserName"
ControlPersist yes
ControlMaster auto
ControlPath ~/.ssh/“username”@relay.XXX.com
Compression yes
- mac下
zsh: workon command not found
fix: source ~/.bash_profile
export WORKON_HOME=~/env
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
source /usr/local/bin/virtualenvwrapper.sh
IntelliJ IDEA
- pre-commit: py代码检验
Ctrl + Alt + T
: surrand with: for / try-catch / if
Alt + Enter
: 导入包 + 格式化代码
Ctrl + /
: 注释代码
运行程序Tips:
- tomcat控制台乱码: idea.exe.vmoptions和idea.exe.vmoptions中添加
-Dfile.encoding=UTF-8
后重启IDEA - tomcat网页乱码: 配置中VM options: -Dfile.encoding=UTF-8 【setting>Editor>File Encodings: 三处UTF-8 + 打钩】