1. 加锁的原理- 原子操作、中断、test and set 参考:https://blog.csdn.net/qq_35181209/article/details/78026636 TSL-自旋锁的机制分析:https://blog.csdn.net/u011240016/article/det ...
分类:
其他好文 时间:
2020-03-23 15:09:44
阅读次数:
111
一、UML中的六大关系 在UML类图中,常见的有以下几种关系: 泛化(Generalization), 实现(Realization),关联(Association),聚合(Aggregation),组合(Composition),依赖(Dependency)。 1.1、 继承关系—泛化(Gener ...
分类:
其他好文 时间:
2020-03-23 15:07:29
阅读次数:
63
l2_loss()这个函数的作用是利用L2范数来计算张量的误差值,但是没有开发并且只取L2范数的值的一半 函数: tf.nn.l2_loss( t, name=None ) 参数: t:一个张量(tensor),类型可以为:half, bfloat16, float32, float64 name: ...
分类:
其他好文 时间:
2020-03-23 14:59:27
阅读次数:
102
记录一下在用python爬取百度链接中遇到的坑: 1.获取百度搜索页面中的域名URL BeautifulSoup获取a标签中href属性后,链接为百度url,利用request直接访问默认会直接进行跳转,无法获取所需域名 此时需要将requests的allow_redirects属性设置为False ...
分类:
编程语言 时间:
2020-03-23 13:50:02
阅读次数:
82
https://leetcode-cn.com/problemset/all/ https://www.cnblogs.com/think90/p/11440117.html ...
分类:
其他好文 时间:
2020-03-23 12:42:05
阅读次数:
103
在nginx中配置proxy_pass时,当在后面的url加上了/,相当于是绝对根路径,则nginx不会把location中匹配的路径部分代理走;如果没有/,则会把匹配的路径部分也给代理走。 首先是location进行的是模糊匹配 1)没有“/”时,location /abc/def可以匹配/abc ...
分类:
其他好文 时间:
2020-03-23 11:22:52
阅读次数:
70
1.性能测试必要性评估 2.性能测试工具选型 3.性能测试需求分析 4.性能测试需求评审 ...
分类:
其他好文 时间:
2020-03-23 11:16:40
阅读次数:
64
#include "stdafx.h" #include "iostream" using namespace std; #include "string" void func1(string &s1,int x) { for(int i=0;i<s1.size();i++) s1[i]=(s1[i ...
分类:
其他好文 时间:
2020-03-23 10:01:55
阅读次数:
95
async异步数据 1.asyncData方法函数:会在每次加载页面组件之前调用,可以完成在服务器预渲染。建议需要爬虫抓取的页面使用他来获取请求数据 // 引入封装好的接口 import { getData, getNavs } from '@/api/index' // 在asyncData中获取 ...
分类:
其他好文 时间:
2020-03-23 09:56:49
阅读次数:
132
1.程序执行原理: 2.python的执行原理: 3.程序的作用:处理数据 4.变量就是用来存储数据的 ...
分类:
编程语言 时间:
2020-03-23 09:52:19
阅读次数:
57