Python Notes
教程
细化笔记
工具
pyspider
pyspider 安装错误
在 Ubuntu16 中
错误一:
错误描述:
1 2raise ValueError("Invalid configuration:\n - " + "\n - ".join(errors)) ValueError: Invalid configuration:解决方法
- link:https://github.com/binux/pyspider/issues/831
You can change pyspider/webui/webdav.py line 203:
具体:
1 2 3 4 5 6#把 'domaincontroller': NeedAuthController(app), #修改为: 'http_authenticator':{ 'HTTPAuthenticator':NeedAuthController(app), },
错误二:
错误描述:
运行 pyspider all:
- 启动 pyspider 时 Could not create web server listening on port 25555 报错
解决方法:
anaconda 使用
安装问题
在 windows 子系统 ubuntu16 中安装 Miniconda3-latest-Linux-x86_64.sh
- 安装 doccano https://github.com/chakki-works/doccano
出现问题:不能安装 npm,
- 提示不能安装依赖 node-gyp (>= 0.10.9)
- 解决方案https://askubuntu.com/questions/1057737/ubuntu-18-04-lts-server-npm-depends-node-gyp-0-10-9-but-it-is-not-going
emacs encoding
编码错误处理
解决 windows,cmd,powershell 乱码
- 使用 M-x shell
- 然后 M-x set-language-environment, Chinese-GB
- 避免在 eshell 里面调用 cmd,以免卡死
局部文字乱码
- 使用 M-x recode-region
English
for typesetting 排版
| hyphenation | |
| hyphen | |
| discretionary | <–> any |
| accented characters | |
| typographic | 排版上的,印刷上的 |
| ployglossia | |
| delve | |
| abyss | |
| venerable | |
| babel | |
| preamble | |
| glyph | 字形 |
常用单词,生僻词义
level
- 动词,针对
- honestly 真地
短语
- think less of sb. 小瞧 sb.
- pool game 台球
- proper nouns 专业名词
数学
几何
- polyhedron: 多面体
圆
- circumference: 周长