2023-04
2023-04-14
- Python 使用
sys.setdefaultencoding("utf-8")
解决中文编码问题及隐患 相关文章
2023-04-17
- Python venv &
requirements.txt
exportpip install virtualenv virtualenv venv venv\Scripts\activate.bat pip install ... pip freeze > requirements.txt
2023-04-18
- Jinja2的输出外面包含大括号的两种方式:
{ {% ... %} }
, 这样会在前后两端留下两个空格{{ '{' }}{%... %}{{ '}' }}
, 这样不会在两端留下空格
- cmd中,
cd /d %~dp0
使用/d
可以确保能够跳转到不同的磁盘 - cmd batch 以管理员身份运行时, 不要在脚本文件名称中加入
(
或)
, 会无法运行
2023-04-24
2023-04-26
2023-04-28
- 品红色 (Magenta): CMY → (0, 100, 0), RGB → (255, 0, 255), HSV → (300, 100, 100)
- Python 2/3
sys.float_info.epsilon
- Python 3
math.ulp
- Unit in the Last Place