Range对象有几个特别难理解的属性,这里学习总结下 Range.startOffset:返回一个表示 Range 起点在 startContainer 中的位置的数字。此属性的值与Range.startContainer属性相关 Range.endOffset:返回一个表示 Range 终点在 e ...
分类:
编程语言 时间:
2020-05-02 23:10:47
阅读次数:
92
概述 Redis 是一个完全开源免费的、遵守BSD 协议的、内存中的数据结构存储,它既可以作为数据库,也可以作为缓存和消息代理。因其性能优异等优势,目前已被很多企业所使用,但通常在企业中我们会将其作为缓存来使用。Spring Boot 对 Redis也提供了自动配置的支持,接下来本小节将讲解如何在S ...
分类:
编程语言 时间:
2020-05-02 23:05:35
阅读次数:
79
路径名或者变量有空格时候,会造成参数太多的错误提示 解决方法:把空格的地方用引号包括起来 ...
分类:
其他好文 时间:
2020-05-02 23:02:20
阅读次数:
56
输入一个链表,按链表从尾到头的顺序返回一个ArrayList。 /** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : * val(x), next(NULL) { * } * };*/ 方法一利 ...
分类:
其他好文 时间:
2020-05-02 22:56:18
阅读次数:
65
class Person(object): def __init__(self, name): self.name = name p = Person("赵导") def bo(): print("bo~~~~~~~") p.chifan = bo p.chifan() #bo~~~~~~~ ...
分类:
其他好文 时间:
2020-05-02 22:46:25
阅读次数:
84
class staticmethod(object): """ staticmethod(function) -> method Convert a function to be a static method. A static method does not receive an implici ...
分类:
编程语言 时间:
2020-05-02 22:32:25
阅读次数:
120
#include <bits/stdc++.h> using namespace std; #define int long long const int maxn = 3e3 + 10; int n,a[maxn]; int solve(int l,int r){ int minn = 1e9 + ...
分类:
其他好文 时间:
2020-05-02 21:18:45
阅读次数:
61
1、方法一,调用字符映射表输入特殊符号 在键盘上按win+R,在打开的对话框中输入“charmap”,会出现字符映射表: 2、利用字符编码输入特殊符号 #打印Σ print(chr(931)) #打印← print(chr(8592)) #打印→ print(chr(8594)) #打印↑ prin ...
分类:
编程语言 时间:
2020-05-02 21:08:35
阅读次数:
622
.el-form-item{ margin-bottom: 20px; } .el-input{ width: 200px; } .el-form-item__label{ line-height: 32px; } .el-input__inner{ height: 32px; } .el-form ...
分类:
其他好文 时间:
2020-05-02 20:43:09
阅读次数:
654
集合模拟斗地主 public class Demo04Main { public static void main(String[] args) { //1、准备牌 ArrayList<String> poker = new ArrayList<>();? String[] colors = {"? ...
分类:
其他好文 时间:
2020-05-02 19:16:43
阅读次数:
51