Python3 元组 Python 的元组与列表类似,不同之处在于元组的元素不能修改。 元组使用小括号,列表使用方括号。 元组创建很简单,只需要在括号中添加元素,并使用逗号隔开即可。 实例(Python 3.0+) >>>tup1 = ('Google', 'Runoob', 1997, 2000) ...
分类:
编程语言 时间:
2020-04-20 21:52:24
阅读次数:
78
请求参数传递传统网站表单提交<form method="get" action="http://www.example.com"> <input type="text" name="username"/> <input type="password" name="password"/></form> ...
分类:
Web程序 时间:
2020-04-20 21:19:34
阅读次数:
87
问题: 给定一个数组,求从中取得3组连续长度为 k 的子数组,使得3组数组和为最大,且使得3组的index尽可能小(★)。 Example: Input: [1,2,1,2,6,7,5,1], 2 Output: [0, 3, 5] Explanation: Subarrays [1, 2], [ ...
分类:
移动开发 时间:
2020-04-20 13:27:57
阅读次数:
67
一、例子 1、创建写入 testdata = uint8(magic(5)); h5create('my_example.h5','/dataset1',size(testdata)); %创建 h5write('my_example.h5','/dataset1',testdata) %写入 2、 ...
分类:
其他好文 时间:
2020-04-20 13:24:13
阅读次数:
94
Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 1673 ...
分类:
其他好文 时间:
2020-04-20 11:55:53
阅读次数:
62
Given n integers, your task is to pick k out of them so that the picked number are minimum when do bitwise “AND” among all of them. For example, there ...
分类:
其他好文 时间:
2020-04-20 11:39:23
阅读次数:
56
介绍 Facades 为应用的 IoC 服务容器 的类提供了一个静态的接口。Laravel 里面自带了一些 Facades,如Cache等。Laravel 的门面作为服务容器中底层类的“静态代理”,相比于传统静态方法,在维护时能够提供更加易于测试、更加灵活、简明优雅的语法。 解释 在 Laravel ...
分类:
其他好文 时间:
2020-04-20 00:54:33
阅读次数:
102
时过一周,虚机IP地址有所变化 1.MySQL 配置 先建一个 nacos_config 数据库 将SQL执行(方法很多,选自己喜欢的就行) 2.修改 application.properties 配置文件(application.properties.example 是示例) 先备份一下 vi a ...
分类:
其他好文 时间:
2020-04-19 19:31:51
阅读次数:
657
问题: 给定一个n,有数组1~n, 排列该数组,使得数组两两元素之间的差值有k种。 Example 1: Input: n = 3, k = 1 Output: [1, 2, 3] Explanation: The [1, 2, 3] has three different positive int ...
分类:
其他好文 时间:
2020-04-19 14:58:40
阅读次数:
57
keytool + 创建服务端密钥库 + 导出服务端证书 + 客户端证书库导入服务端证书 openssl + 查看openssl版本 + 创建私钥文件 算法:RSA 格式:PKCS 1 文件数据为Base64编码的字符串,首行和尾行特殊标记, "RFC2405" 规定每行最多76个字符,上例是64个 ...
分类:
其他好文 时间:
2020-04-19 14:30:06
阅读次数:
67