import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int size = scanner.ne... ...
分类:
其他好文 时间:
2018-01-13 23:45:08
阅读次数:
231
import java.util.Scanner; public class Main { public static void main(String[] args) { String string = new Scanner(System.in).next(); String[] strings... ...
分类:
其他好文 时间:
2018-01-13 23:40:18
阅读次数:
207
访问子串 字符串追加 转义字符 字符串运算符 字符串格式化符号 %f和%E的简写 用十六进制数格式化变量的地址 定义宽度或者小数点精度 Unicode字符串 使用u''来定义Unicode字符串 内建函数 ...
分类:
编程语言 时间:
2018-01-13 18:46:04
阅读次数:
122
设置颜色的方式: 关键字:red|blue 第一种:十六进制:#ffffff 第二种:rgb(红,绿,蓝): rgb(ffff00) rgba(红,绿,蓝,透明度) 第三种:hsl(色相,饱和度,明度) hsla(色相,饱和度,明度,透明度) h:hue:色相,颜色的色系 s:saturation:... ...
分类:
其他好文 时间:
2018-01-13 11:21:15
阅读次数:
191
一、bytes类型 二、三元运算 1 result = 值1 if 条件 else 值2 如果条件为真:result = 值1 如果条件为假:result = 值2 三、进制 二进制,01 八进制,01234567 十进制,0123456789 十六进制,0123456789ABCDEF 二进制到1 ...
分类:
编程语言 时间:
2018-01-13 00:28:31
阅读次数:
145
布尔值 最基本的数据类型就是简单的true/false值,在JavaScript和TypeScript里叫做boolean(其它语言中也一样)。 数字(浮点数) 和JavaScript一样,TypeScript里的所有数字都是浮点数。 这些浮点数的类型是number。 除了支持十进制和十六进制字面量 ...
分类:
其他好文 时间:
2018-01-12 18:09:58
阅读次数:
471
1.1 hashlib模块使用方法一:先实例化一个对象,再使用update做校验,最后十六进制查看hexdigestIn [3]: import hashlibIn [5]: md5 = hashlib.md5()In [6]: md5.update("a")In [7]: md5.hexdigest()Out[7]: '0cc175b9c0f1b6a831
分类:
编程语言 时间:
2018-01-12 15:59:23
阅读次数:
200
urlencode()函数原理就是首先把中文字符转换为十六进制,然后在每个字符前面加一个标识符%。urldecode()函数与urlencode()函数原理相反,用于解码已编码的 URL 字符串,其原理就是把十六进制字符串转换为中文字符。urlencode()编码:对字符串中除了 -_. 之外的所有 ...
分类:
Web程序 时间:
2018-01-12 14:56:46
阅读次数:
198
Given an integer, write an algorithm to convert it to hexadecimal. For negative integer, two’s complement method is used. Note: Example 1: Example 2: ...
分类:
其他好文 时间:
2018-01-12 13:26:54
阅读次数:
145
半透明<Button android:background="#e0000000" ... />透明<Button android:background="#00000000" ... />颜色和不透明度 (alpha) 值以十六进制表示法表示。任何一种颜色的值范围都是 0 到 255(00 到 f ...
分类:
移动开发 时间:
2018-01-10 20:20:32
阅读次数:
249