1.可以通过settings/dev.py的ALLOWED_HOSTS,设置允许访问 # 设置哪些客户端可以通过地址访问到后端 ALLOWED_HOSTS = [ 'api.luffycity.cn', ] 2.安装跨域模块(一下代码修改都是在settings.dev下进行的) pip instal ...
分类:
编程语言 时间:
2020-06-20 11:36:32
阅读次数:
76
开始写后端工程: cnpm i express body-parser jwt-simple cors express-session connect-mongo mongoose -S ...
分类:
其他好文 时间:
2020-06-19 23:10:37
阅读次数:
92
使用 EXPLAIN 函数可以清楚的查看语句的执行情况 EXPLAIN select id from b_nc_card where id != 10000; 一共查询了:530912 行 优化后 EXPLAIN (select id from b_nc_card where id > 10000) ...
分类:
数据库 时间:
2020-06-19 19:19:51
阅读次数:
56
好风凭借力,送我上青云。 介绍 SQLAlchemy对象关系映射器提供了一种将用户定义的Python类与数据库表以及这些类(对象)的实例与相应表中的行关联起来的方法 1. 安装 pip install sqlalchemy -i https://pypi.doubanio.com/simple 2. ...
分类:
数据库 时间:
2020-06-18 15:49:30
阅读次数:
49
1078 Hashing (25分) The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of ...
分类:
其他好文 时间:
2020-06-17 12:38:08
阅读次数:
61
什么是MediatR 项目地址:https://github.com/jbogard/MediatR Simple mediator implementation in .NET In-process messaging with no dependencies. Supports request/ ...
分类:
其他好文 时间:
2020-06-17 01:35:56
阅读次数:
124
vue的基础使用 vue官网 vue开源项目汇总 vue创建项目步骤: 1、cd 当前目录 2、vue init webpack-simple 01 3、接下来根据提示操作 4、cd 01 5、npm install 6、npm run dev 7、只关心src文件夹里面的文件 vue核心插件: v ...
分类:
其他好文 时间:
2020-06-16 16:53:00
阅读次数:
65
往届学长的一场比赛. 总结:三道水题 haha! Task 1 省选 jloi.cpp/in/out 给你一个字符串,你每次只能删除一个回文串,问你最少需要几步将字符串删完,或输出无解. 题解:显然,答案最多为 2,而如果这个串本身就不是回文串答案就是 1,所以难点就是判断无解的情况. 手画几组发现 ...
分类:
其他好文 时间:
2020-06-16 15:25:22
阅读次数:
48
安装Tensorflow 2.0以后,运行 import tensorflow as tf 出现下面的错误: 原因及解决的办法:以前是用pip install tensorflow-gpu安装的,没有指定版本,删除以前安装的版本,指定版本为2.0.0-alpha0安装: pip install te ...
分类:
其他好文 时间:
2020-06-16 14:48:46
阅读次数:
112
1、异常提示:DEBUG [restartedMain] io.netty.util.internal.PlatformDependent0 (261)- direct buffer constructor: unavailable java.lang.UnsupportedOperationExc ...
分类:
数据库 时间:
2020-06-16 13:29:53
阅读次数:
64