For a binary tree T, we can define a flip operation as follows: choose any node, and swap the left and right child subtrees. A binary tree X is flip e ...
分类:
其他好文 时间:
2020-10-08 19:09:30
阅读次数:
24
从视图结构来管控: 以stock.picking 的tree 视图为例,如果将name字段设置群组管控 <?xml version="1.0"?> <tree decoration-info="state == 'draft'" decoration-muted="state == 'cancel' ...
分类:
其他好文 时间:
2020-10-08 18:29:01
阅读次数:
16
vue中解决跨域问题 方法1.后台更改header header('Access-Control-Allow-Origin:*');//允许所有来源访问 header('Access-Control-Allow-Method:POST,GET');//允许访问的方式 方法2.使用JQuery提供的j ...
分类:
其他好文 时间:
2020-10-07 21:25:07
阅读次数:
29
题意 统计树中的每一层有多少叶子结点,要求逐层输出 思路 逐层输出,刚好层序遍历是逐层扩展,所以我就直接用BFS了 代码 #include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <v ...
分类:
其他好文 时间:
2020-10-06 20:54:35
阅读次数:
26
1.跨域原理 1. 首先浏览器安全策略限制js ajax跨域访问服务器 2. 如果服务器返回的头部信息中有当前域: // 允许 http://localhost:8080 这个网站打开的页面中的js访问我 Access-Control-Allow-Origin: http://localhost:8 ...
分类:
其他好文 时间:
2020-10-05 22:32:53
阅读次数:
48
Decision Tree 决策树 决策树的定义和直观解释 决策树定义 决策树是一类常见的机器学习方法。本质就是一棵树,这棵树表示的含义如下: 每个非叶子结点对应一个判定问题 每个叶子结点对应一个决策结果 每一条从根到叶的路径对应一个完整的决策过程 决策树模型的特点 优点 可解释性极强,常用于医疗诊 ...
分类:
其他好文 时间:
2020-10-05 22:31:25
阅读次数:
37
7-1 jmu-python-韩信点兵 (20分) 7-2 打印数字矩形 (10分) 7-3 成绩统计 (10分) 7-4 找列表中最大元素的下标 7-5 删除列表中的重复值 如下: https://github.com/shylara-zhou/pythonPTA/tree/main ...
分类:
编程语言 时间:
2020-10-05 22:31:12
阅读次数:
56
a.什么是IOC 控制反转(Inversion of Control),把对象的创建和对象之间的调用过程,交给Spring进行管理 b.目的 为了使耦合度降低 1.IOC底层原理 xml解析,工厂模式,反射 第一步 xml配置文件,配置创建的对象 <bean id="dao" class="clas ...
分类:
其他好文 时间:
2020-10-05 22:20:36
阅读次数:
28
ALGS4 Exercise 1.5.15 Problem Binomial trees. Show that the number of nodes at each level in the worst-case trees for weighted quick-union are binomia ...
分类:
编程语言 时间:
2020-10-05 21:48:17
阅读次数:
42
虚拟机环境设置关闭swap分区swapoff-a&&sed-i‘/swap/s/^(.*)$/#\1/g‘/etc/fstab&&free-m关闭selinuxsed-i‘s/SELINUX=enforcing/SELINUX=disabled/‘/etc/selinux/config关闭防火墙systemctlstopfirewal
分类:
Web程序 时间:
2020-10-05 21:41:21
阅读次数:
31