quantitative_factor_evaluation/笔记.md

63 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

not
in- 检查字段的值是否位于传递列表中
not_in
gte- 大于或等于传递的值
gt- 大于传递的值
lte- 低于或等于传递的值
lt- 低于传递值
range- 介于和给定两个值之间
isnull- 字段为空
not_isnull- 字段不为空
contains- 字段包含指定的子字符串
icontains- 不区分大小写contains
startswith- 如果字段以值开头
istartswith- 不区分大小写startswith
endswith- 如果字段以值结尾
iendswith- 不区分大小写endswith
iequals- 区分大小写等于
source_field :自定义数据库对应字段名称
generated :是否映射到数据库,
pk 是否为主键
null
default 可以为值或可调用对象
unique
index
description 描述功能,数据库注释用
# 换源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip config set install.trusted-host mirrors.aliyun.com
# 安装aioredis报错duplicate base class TimeoutError
解决方法https://blog.csdn.net/ViniJack/article/details/131809573
# 创建虚拟环境
```
python -m venv venv
```
# 进入虚拟环境
```
venv/Scripts/activate
```
# 生成类似 packpage.json的文件
```python
pip freeze > requirements.txt
```
## 安装requirements.txt依赖
```python
pip install -r requirements.txt
```
++++++++++++++++Linux++++++++++++++++++++++
#创建虚拟环境
python3 -m venv venv
. venv/bin/activate