[root@test-can-nginx src]# which python3 /usr/bin/python3 [root@test-can-nginx src]# rpm -qf /usr/bin/python3 python34-3.4.8-1.el6.x86_64 [root@test-c... ...
分类:
其他好文 时间:
2019-08-22 19:04:15
阅读次数:
72
<script type="text/javascript"> 'use strict'; $(function () { $("#c1").click(function () { $('input[type="checkbox"]').prop("checked", this.checked) } ...
分类:
Web程序 时间:
2019-08-22 14:46:49
阅读次数:
115
let 和 const 命令 1. let命令 基础使用 let声明的变量只在它所在的代码块有效。 ES6 声明变量的六种方法: ,`function let const import class` ...
分类:
其他好文 时间:
2019-08-22 11:17:25
阅读次数:
72
Python 中 global 关键字可以定义一个变量为全局变量,但是这个仅限于在一个模块(py文件)中调用全局变量,在另外一个py文件 再次使用 global x 也是无法访问到的,因为在这个py模块中并没有一个叫做x的变量,于是就会报错 未定义。 借鉴global 关键字的思路,既然在一个文件里 ...
分类:
编程语言 时间:
2019-08-22 10:54:17
阅读次数:
76
函数的参数 位置参数 函数有两个参数: 和`n x`和 。 默认参数 函数有两个参数: 和`n n`值时,默认计算 的平方,此时可以将 设为默认值2。 可变参数( args) 定义可变参数时,需要在参数前面加一个 号,可变参数的个数是可变的。在函数内部,参数 接收到的是一个 。输出结果如下: 关键字 ...
分类:
编程语言 时间:
2019-08-20 18:52:23
阅读次数:
119
dump和load是对于json格式的写入和读取,dumps和loads只是类型转换 dump : 是将dict(字典格式)转换为str(字符串格式),并且写入到json文件中 例如: dumps: 是将dict(字典格式)转换为str(字符串格式)。 例如: 运行结果: load: 用于从json ...
分类:
其他好文 时间:
2019-08-20 12:41:09
阅读次数:
72
N-COUNT A stack of things is a pile of them. 摞; 堆 N-COUNT A stack of things is a pile of them. 摞; 堆 例: There were stacks of books on the bedside table ...
分类:
其他好文 时间:
2019-08-19 22:49:30
阅读次数:
104
dict、set dict:Python内置了字典:dict的支持,dict全称dictionary,在其他语言中也称为map,使用键 值(key value)存储,具有极快的查找速度。 语法: 键:值,键:值 实例: 运行结果: 获取值的方法 通过键获取值: 实例: 运行结果: 通过get键获取值 ...
分类:
编程语言 时间:
2019-08-19 22:45:00
阅读次数:
98
SupportActivity.java(support库) @Override @SuppressWarnings("RestrictedApi") protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCre ...
分类:
其他好文 时间:
2019-08-19 21:01:16
阅读次数:
99
this is a markdown test. this is second title . this is thirid title . how about this? ...
分类:
其他好文 时间:
2019-08-18 11:44:22
阅读次数:
65