注:实例环境 vue cli构建的项目 app.vue <template> <Example></Example> </template> <script> import Example from './components/Example' export default { name: 'App ...
分类:
其他好文 时间:
2021-06-20 18:04:04
阅读次数:
0
import { createApp } from 'vue' import App from './App.vue' import router from './router' import store from './store' import vant from 'vant'; import ...
分类:
其他好文 时间:
2021-06-20 18:02:48
阅读次数:
0
计算交叉验证的指标 使用交叉验证最简单的方法是在估计器和数据集上调用 cross_val_score 辅助函数。 下面的示例展示了如何通过分割数据,拟合模型和计算连续 5 次的分数(每次不同分割)来估计 linear kernel 支持向量机在 iris 数据集上的精度: >>> from skle ...
分类:
其他好文 时间:
2021-06-20 17:46:16
阅读次数:
0
Hive列转行: select school,concat_ws('|',collect_set(name)) as name from tmp_01 group by school; 注意:collect_set 有重复的会去重, collect_list 有重复的不去重 hive行转列: sel ...
分类:
其他好文 时间:
2021-06-19 19:05:46
阅读次数:
0
本节讲述了elementui tree 可拖拽节点的使用 通过 draggable 属性可让节点变为可拖拽。 allow-drop判定目标节点能否被放置。allow-drop是個函数类型的属性 Function(draggingNode, dropNode, type) draggingNode当前 ...
支付接口并发 需求:对支付接口做并发,验证账户金额的扣款(-)冻结(+),然后把执行结果写到一个日志文件 # @Time : '2021-6-19 07:58' # @Author : 'pc.kang' import time,json,requests from threading import ...
分类:
其他好文 时间:
2021-06-19 19:00:28
阅读次数:
0
https://ac.nowcoder.com/acm/contest/11212/E #include<bits/stdc++.h> using namespace std; // define a point class to store a point class Point { public ...
分类:
其他好文 时间:
2021-06-19 18:50:57
阅读次数:
0
import axios from "axios";//axios引入 import { Message } from "element-ui";//message组件引入 import router from "../router";//路由 // 创建axios实例 const service ...
分类:
移动开发 时间:
2021-06-19 18:40:48
阅读次数:
0
首先安装axios npm install axios --save 在src下新建utils文件夹 再新建request.js文件 //utils->request.js import axios from 'axios' const requests = axios.create({ baseU ...
分类:
移动开发 时间:
2021-06-18 20:13:16
阅读次数:
0
from turtle import * def square(size=50, rgb = 'orange'): pencolor(rgb) for i in range(4): fd(size) left(90) def main(): setup(800, 600) speed(0) for ...
分类:
其他好文 时间:
2021-06-18 20:05:27
阅读次数:
0