LinearLayout layout_gravity:组件在父容器里的对齐方式 gravity:组件包含的所有子元素的对齐方式 layout_weight:在原有基础上分配剩余空间,一般把layout_height都设置为0dp再使用此属性 设置分割线可以用divider属性,或者插入View < ...
分类:
其他好文 时间:
2021-06-30 18:44:14
阅读次数:
0
1 <?xml version="1.0" encoding="UTF-8"?> 2 <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
分类:
移动开发 时间:
2021-06-29 16:09:22
阅读次数:
0
14. 字符串 什么是字符串? Go 语言中的字符串是一个字节切片。把内容放在双引号""之间,我们可以创建一个字符串。让我们来看一个创建并打印字符串的简单示例。 Copy package main import ( "fmt" ) func main() { name := "Hello World ...
分类:
其他好文 时间:
2021-06-28 21:18:43
阅读次数:
0
Python部分内置函数 class bytearray([source[, encoding[, errors]]]) 返回一个新的 bytes 数组。 bytearray 类是一个可变序列,包含范围为 0 <= x < 256 的整数。它有可变序列大部分常见的方法 可选形参 source 可以用 ...
分类:
编程语言 时间:
2021-06-28 21:03:27
阅读次数:
0
<?xml version="1.0" encoding="UTF-8" ?> <!-- 在此未说明属性为非必须的,那就表示属性必须设置 --> <!-- *****************最小配置文件结构介绍******************************* --> <!-- <con ...
分类:
其他好文 时间:
2021-06-28 20:40:17
阅读次数:
0
<?xml version="1.0" encoding="UTF-8"?><configuration> <system.webServer> <rewrite> <rules> <rule name="Imported Rule 1"> <match url="^index.html" /> < ...
分类:
Web程序 时间:
2021-06-28 19:43:32
阅读次数:
0
人类分块精华(Ex) 优雅,永不过时。 艺术的暴力,暴力的艺术——分块。 文艺分块术 没错,不是文艺平衡树,而是文艺分块术!!! Part 1 Problem 您需要写一种数据结构,来维护一个长度为 \(n\) 的有序数列 \(A\),其中 \(A_i=i\) 。 其中需要提供以下操作:反转一个区间 ...
分类:
其他好文 时间:
2021-06-28 19:35:33
阅读次数:
0
codeforces1540B 题目:https://codeforces.com/contest/1540/problem/B sol: 一整年没有写题回来练练手,发现啥都不会了。 可以枚举一个根 $rt$ ,再枚举点对 $(a,b)$ ,其中 $a \leq b$; 出现逆序对需要 $b$ 在 ...
分类:
其他好文 时间:
2021-06-28 19:30:05
阅读次数:
0
# 方式一:文本编辑器的方式# with open('a.txt', mode='rt', encoding='utf-8') as f1:# res = f1.read()# data = res.replace('a1', 'b1')## with open('a.txt', mode='wt' ...
分类:
编程语言 时间:
2021-06-25 17:21:16
阅读次数:
0
""" 控制文件读写内容的模式 t 文本 1.读写都是以str(unicode)为单位 2.文本文件 3.必须指定encoding='utf-8'"""# 没有指定encoding参数操作系统会使用自己默认的编码# with open('a.txt', mode='rt') as f1: # t模式 ...
分类:
编程语言 时间:
2021-06-25 17:15:48
阅读次数:
0