喵窝

Nice to see u

0%

网站基本功能

网站目前主要功能大概包括几点:

  1. 正常发布文字,图片,视频

  2. admin管理界面可以编辑发布内容,包括富文本编辑

  3. 可以实现与微信的通讯接口

    Read more »

Django相关

Django Templates相关

static文件夹配置及引用

1
2
3
4
#setting.py中设置
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static'),
)
1
2
#templates html中引用
<script src="{% static "js/jquery.min.js" %}"></script>
Read more »

Python基础 import与from…import…

1
2
3
If the import module in the same dir, use e.g: from . import core
If the import module in the top dir, use e.g: from .. import core
If the import module in the other subdir, use e.g: from ..other import core
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import sys
print('================Python import mode==========================');
print ('The command line arguments are:')
for i in sys.argv:
print (i)
print ('\n The python path',sys.path)

from sys import argv,path#导入特定的成员
print('================python from import===================================')
print('path:',path)

如果你要使用所有sys模块使用的名字,你可以这样:

from sys import *
print('path:',path)
Read more »

背景

利用python,Django设计后台框架,Bootstrap设计前台框架快速开发web界面.

建立虚拟环境Virtualenv

建立虚拟环境

1
2
3
4
5
6
7
8
9
#查找python地址
$ which python3
/usr/local/bin/python3
#建立虚拟环境
$ virtualenv -p /usr/local/bin/python3.5 ENV3.5
导入虚拟环境Virtualenv
$ source ENV3.5/bin/activate
退出虚拟环境Virtualenv
$ deactivate
Read more »

目前国内相关网站信息

国内目前找到两家网站,主要有社区,策略,相应的测试数据,也已经有SDK发布,可以根据提供的api进行运行与模拟

[UQER 优矿](https://uqer.io/home/)
[JoinQuant 聚宽](https://www.joinquant.com/)

貌似这两家做的比较不错,SDK与人气方面都还可以,也有基础教程,都可以考虑.基本上Quant这块基本语言都是Python,上手也不是那么麻烦.

Read more »

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment