目录一、布尔值(bool)1.1 作用1.2 定义1.3 如何用 一、布尔值(bool) 1.1 作用 用于判断条件结果 1.2 定义 True、False通常情况不会直接引用,需要使用逻辑运算得到结果。 1.3 如何用 print(type(True)) print(True) <class 'b
转载 2019-08-29 18:37:00
201阅读
2评论
Pipeline虽然好用,但是每次Pipeline组装的命令个数不能没有节制,否 则一次组装Pipeline数据量过大,一方面会增加客户
原创 14天前
26阅读
1、创建空文件。可以创建一个空文件,也可以批量创建空文件。 2、更改文件/目录的访问时间,如果文件存在就更改访问时间,不存在就创建。# touch -a 3、更改文件的访问时间和修改时间。如果文件存在就更改,如果文件不存在则也不创建新文件。# touch -c 4、更改修改时间。# touch -m
原创 2022-08-02 17:31:37
55阅读
Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.class Solution(object): def strStr(self, haystack, needle): """ :type haystack: str :type needle.
原创 2022-04-16 09:44:23
88阅读
https://forums.oracle.com/forums/thread.jspa?threadID=1396436&tstart=2244
原创 2023-05-07 11:04:00
79阅读
in_groups_of Have you ever wanted to visually line up items in rows and columns? The in_groups_of method makes this a cinch. Just watch out for the gotcha.   你是否曾经希望显示的条目能按行列对其呢?用in_groups_o
原创 2009-02-20 10:05:58
780阅读
we are given an array of integers, stock. represents the prices. a...
转载 2020-10-07 03:24:00
19阅读
2评论
we are given an array of integers, stock. represents the prices. a...
转载 2020-10-07 03:24:00
33阅读
2评论
【代码】vue.js代码028
原创 2023-02-25 11:48:10
56阅读
Partitioner:数据分区器,决定数据到下一个RDD的时候在那一个分区 HashPartitioner:根据key的hashCode值来实现 RangePartitioner: 根据key所属范围的进行分区 1. 先进行数据抽样,对抽样数据进行排序后得到分区的边界数据 2. 根据key在边界数
转载 2017-03-09 21:27:00
67阅读
2评论
lpad(str,len,padstr),rpad(str,len,padstr): 返回一个在左侧或右侧填充有padstr的字符串,长度不超过
原创 2023-07-10 07:28:47
113阅读
PCIE 编码方案 传输速率 吞吐量×11.0 8b/10b 2.5GT/s 2.5x8/10Gb/s=2Gb/s=250MB/s2.0 8b/10b 5.0GT/s 5.0x8/10Gb/s=2Gb/s=500MB/s3.0 128b/130b 8.0GT/s 8.0x128/130Gb/s=7.877Gb/s=984.6MB/s4.0 128b/130b 16GT/s 1...
原创 2021-11-11 15:16:13
166阅读
不同地方使用sendmail实现mail的收发   28-1 BJ-mail服务器的配置 1.安装dns 1.1 安装包 [root@mail ~]# yum install bind  [root@mail ~]# yum install bind-chroot &ndash;改变dns的路径,保证安全的包 [root@mail ~]# yum in
原创 2011-09-21 21:14:57
619阅读
Atcoder 题解
转载 2021-02-01 22:29:00
123阅读
2评论
AGC028D 在一个有$2n$个点的圆上,有$k$对点被钦定右边,剩下$2(n-k)$个点任意配对。 问所有的方案中,所有的连通块的个数之和。 \(n\le 300\) 思维僵化。。。 考虑分别对每个连通块计算它的贡献。每个连通块以它的左右端点来统计。 令$f_{l,r}$表示:$l$和$r$在一
转载 2020-09-22 19:53:00
88阅读
2评论
原创 2022-08-02 17:20:39
37阅读
[AGC028B] Removing Blocks 题意: 给定长度为 \(n\) 的序列 \(\{a_n\}\),现需将 \(n\) 个元素全部删除。 删除元素 \(i\) 的时候,设包括 \(i\) 的极长未被删除区间为 \([l,r]\) ,则代价为 \(\sum_{p=l}^r a_p\) ...
转载 2021-10-15 18:25:00
79阅读
2评论
1.跨域 2.什么是跨域
原创 2022-07-15 10:17:02
24阅读
 
转载 2016-07-31 23:33:00
67阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5