1.使用help函数(推荐使用) 2.函数名.__doc__ 3.自定义函数的文档 ...
分类:
编程语言 时间:
2019-05-11 18:24:39
阅读次数:
142
首先把点权归到边上,设点权较小的一个点是v,也就是(u,v)的边权是log2(dis(u,v)) a[v]+a[v]+a[u] 然后还有一个性质就是这棵树按点权最小点提起来就是一个堆 暴力是n^2的MST,然后考虑优化,按照点权从小到大加入生成树,那么每个点加进去的时候会连到点权比他小的点上 因为l ...
分类:
其他好文 时间:
2019-05-11 18:20:59
阅读次数:
111
1.什么是Pytorch,为什么选择Pytroch? 2.Pytroch的安装 3.配置Python环境 4.准备Python管理器 5.通过命令行安装PyTorch 6.PyTorch基础概念 GPU云服务器默认提供了pytorch的环境, 7.通用代码实现流程(实现一个深度学习的代码流程) im ...
分类:
其他好文 时间:
2019-05-11 18:03:32
阅读次数:
408
//需求,勾选选项时,总价格要跟着变,点击添加数量,总价格也要跟着变,全部要动态变化 //代码如下 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> .jisuan ...
分类:
Web程序 时间:
2019-05-11 17:52:11
阅读次数:
152
https://leetcode.com/problems/second-highest-salary/ Write a SQL query to get the second highest salary from the Employee table. For example, given th ...
分类:
其他好文 时间:
2019-05-11 16:30:36
阅读次数:
101
https://leetcode.com/problems/customers-who-never-order/ Suppose that a website contains two tables, the Customers table and the Orderstable. Write a ...
分类:
其他好文 时间:
2019-05-11 16:27:28
阅读次数:
129
在学校做一个校企合作项目,注册登录这一块需要对注册登录进行输入合法的服务器端验证,因为是前后端分离开发,所以要求返回JSON数据。 方法有很多,这觉得用全局异常处理比较容易上手 全局异常处理 首先来创建一个sprIngboot的web项目或模块,目录结构如下 实体类User.java 实体类User ...
分类:
编程语言 时间:
2019-05-11 16:21:18
阅读次数:
158
1.环境 jdk1.8以上 maven3.3以上 2.用idea创建空项目 添加maven模块 3.pom.xml(maven包下载https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web/ ...
分类:
编程语言 时间:
2019-05-11 13:36:09
阅读次数:
150