软件开发架构 HTTP协议 1.四大特性?2.数据格式?3.响应状态码 手动书写web框架 1.纯手撸web框架?2.基于wsgiref模块?3.jinja2模板语法?4.结合前端、数据库、后端框架# 代码的封装处理 主流web框架 1.django?2.flask?3.tornado django ...
分类:
其他好文 时间:
2021-06-17 17:22:17
阅读次数:
0
Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if i ...
分类:
其他好文 时间:
2021-06-17 17:13:05
阅读次数:
0
1.2 注解@Import 该注解可以给容器导入很多的组件,有一个value属性,是Class的数组,所以可以 一下导入多个组件,该注解可以添加在组件类上面。具体使用如下,在MyConfig配置类上面添加该注解 package com.studymyself.config; import ch.qo ...
分类:
编程语言 时间:
2021-06-17 17:12:18
阅读次数:
0
1、批量插入 ServiceImpl层 List<Person> addPeople = new ArrayList<>(); //addPeople存放多个Person对象 personMapper.insetPeopleReturnIds(addPeople); Dao层接口(这里的注解para ...
分类:
数据库 时间:
2021-06-17 17:02:57
阅读次数:
0
插入数据,存在就更新,不存在就插入: insert into tablename (key1,key2,key3) values ('xxx','xxx','xxx') on conflict(key1) do update set key2 = 'yyy',key3 = 'yyy'; 修改表中的字 ...
分类:
数据库 时间:
2021-06-17 17:01:10
阅读次数:
0
VS2015 NX12 //关键代码 //用户代码NXString YN_Shrinkage::doubleToNXString(double value)//double转换NXString{ stringstream tmpValue1; tmpValue1 << setprecision(16 ...
分类:
其他好文 时间:
2021-06-17 16:35:34
阅读次数:
0
微信错误代码为40164,错误信息为无效ip 地址,不在白名单中。 为了提高公众平台开发者接口调用的安全性,避免一旦开发者ID和密码泄露后给帐号造成损失。我们对调用“获取access_token”接口增加IP白名单校验:只有将IP地址设置为公众号的IP白名单,才能成功调用该接口。 开启IP白名单的步 ...
分类:
微信 时间:
2021-06-17 16:28:40
阅读次数:
0
<?php /** * BCmath 封装类 * Calc::init(10)->add(1,2,3)->sub(1,2)->mul(4, 5)->value(2); // (10+1+2+3-1-2)*4*5 最后 get 保留 2位小数 * Calc::add(10, 2)->div(2)->v ...
分类:
Web程序 时间:
2021-06-16 18:18:02
阅读次数:
0
遇到这种报错一般在于下载文件时候,如果Content-Disposition设置文件名有中文会出现此种问题,解决方案如下: 把第二段代码改为第一段,即可~~ 'Content-Disposition': 'attachment; filename=' + encodeURIComponent(fil ...
分类:
Web程序 时间:
2021-06-16 17:52:51
阅读次数:
0
四种格式的解析: filelist slicelist download.cfg third_party_download.cfg 还是2个文件。替换之前版本即可。 初步测试正常,但时间轴不对。 代码如下: # -*- coding: UTF-8 -*- import os import io im ...
分类:
其他好文 时间:
2021-06-16 17:41:38
阅读次数:
0