When working with Web applications, use a context instance per request. Install-Package EntityFramework -Version using System.Data.Entity; public clas ...
分类:
其他好文 时间:
2020-07-16 11:45:43
阅读次数:
67
一、自动签发 urls from rest_framework_jwt.views import obtain_jwt_token # 使用jwt自带的登录视图 urlpatterns = [ path('login/', obtain_jwt_token), ] settings import d ...
分类:
其他好文 时间:
2020-07-16 00:03:00
阅读次数:
59
借花献佛:一、定义字典 Set d = CreateObject("Scripting.Dictionary")二、呼之即来,挥之即去d("张三“)=1 '相当于给字典赋值,张三过来(没有就生成)拿个1站一边去d("李四”)=2 '相当于给字典赋值,李四过来(没有就生成)拿个2站一边去d("李四”) ...
分类:
编程语言 时间:
2020-07-15 23:52:50
阅读次数:
66
协程使用注意事项 协程内部禁止使用全局变量,以免发生数据错乱; 协程使用 use 关键字引入外部变量到当前作用域禁止使用引用,以免发生数据错乱; 不能使用类静态变量 Class::$array / 全局变量 $_array / 全局对象属性 $object->array / 其他超全局变量 $GLO ...
分类:
其他好文 时间:
2020-07-15 23:14:15
阅读次数:
96
https://medium.com/terra-money/survey-of-automated-market-making-algorithms-951f91ce727a Automated market makers are routinely adopted in a number of ...
分类:
其他好文 时间:
2020-07-15 15:45:37
阅读次数:
60
代码如下:import ospath = 'C:\\tmp\\2020-07-14'for folderName, subfolders, filenames in os.walk(path): print('The current folder is ' + folderName) for sub... ...
分类:
编程语言 时间:
2020-07-15 15:38:46
阅读次数:
69
问题是什么? 在flask中,使用多线程操作数据库,报错:RuntimeError: No application found . Either work inside a view function or push an application context 报错原因:线程是独立的,相对于fla ...
分类:
移动开发 时间:
2020-07-15 15:04:39
阅读次数:
143
DockerFile的指令 FROM # 基础镜像,一切从这里开始构建 MAINTAINER # 镜像的作者 RUN # 镜像构建的时候需要运行的命令 ADD # 镜像中需要自己添加的内容 WORKDIR # 镜像的工作目录 VOLUME # 挂载目录 EXPOST # 保留端口配置(在这里配置了, ...
分类:
其他好文 时间:
2020-07-15 15:03:09
阅读次数:
49
一:web.xml加载过程: 1.启动WEB项目的时候,容器首先会去读取web.xml配置文件中的两个节点:<listener> </listener>和<context-param> </context-param>; 2.容器创建一个ServletContext(application),容器以 ...
分类:
Web程序 时间:
2020-07-15 13:04:47
阅读次数:
65
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance ...
分类:
编程语言 时间:
2020-07-15 13:02:06
阅读次数:
82