序言:在练习Spring Boot + MyBatis多数据源项目时,遇到 ERROR 16856 [reate-876365377] com.alibaba.druid.pool.DruidDataSource : create connection SQLException, url: jdbc ...
分类:
其他好文 时间:
2020-02-15 11:42:54
阅读次数:
52
You are given a string ss. Each character is either 0 or 1. You want all 1's in the string to form a contiguous subsegment. For example, if the string ...
分类:
其他好文 时间:
2020-02-13 13:12:48
阅读次数:
61
'''重写:将函数重写定义写一遍__str__():在调用print打印对象时自动调用,是给用户用的,是一个描述对象的方法。__repr__():是给机器用的,在Python解释器里面直接敲对象名在回车后调用的方法注意:在没有str时,且有repr,str = repr'''class Person ...
分类:
编程语言 时间:
2020-02-10 21:01:03
阅读次数:
116
Problem : A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a ...
分类:
其他好文 时间:
2020-02-09 11:54:41
阅读次数:
76
构造和初始化__init__(self, args)构造函数__new__(cls)传入的是类实例__del__(self)析构函数,调用 del cls 时会被调用属性访问控制__getattr__(self, name)如果属性已经定义了那么不会再执行__getattr__()了,而是直接通过访... ...
分类:
编程语言 时间:
2020-02-08 11:30:40
阅读次数:
96
参考文献:BERT+知识图谱:北大-腾讯联合推出知识赋能的K-BERT模型 地址:https://blog.csdn.net/c9Yv2cf9I06K2A9E/article/details/103790278 此前两篇关于知识图谱结合预训练的文章作为了解: ERNIE: Enhanced Repr ...
分类:
其他好文 时间:
2020-02-07 20:52:21
阅读次数:
153
为了对类有更加深入的理解,继续学习类相关知识。 8.1修改实例的字符串标识 class Pair: def __init__(self, x, y): self.x = x self.y = y def __repr__(self): # !r标志__repr__输出 return 'Pair({0 ...
分类:
编程语言 时间:
2020-02-03 09:32:58
阅读次数:
52
Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longestpath betwee ...
分类:
其他好文 时间:
2020-02-01 11:02:57
阅读次数:
105
蓝奏云下载地址:https://www.lanzous.com/b00t8rpoj ,无密码(No sercet) ...
分类:
编程语言 时间:
2020-01-30 19:22:33
阅读次数:
84
表单的name作用:name 属性用于对提交到服务器后的表单数据进行标识 注意:只有设置了 name 属性的表单元素才能在提交表单时传递它们的值。 简单来说,name就是提交到后台的索引,比如在复选框中都要设置成name="hobby"说明几个复选框都在爱好下。 (1)name如何分组: 具有相同n ...
分类:
其他好文 时间:
2020-01-29 19:34:09
阅读次数:
134