1,函数名的运用 1,函数的内存地址 函数名的定义和变量的定义几乎是一样的,在变量的角度,函数名就是一个变量,具有变量的功能:可以赋值;但是作为函数名他也有特殊的功能就是加上()就会执行对应的函数,所以我们可以把函数名当作一个特殊的变量 def func(): print('hh') print(f ...
分类:
编程语言 时间:
2020-03-06 13:43:57
阅读次数:
71
给定一个整数数组 ,找出一个序列中乘积最大的连续子序列(该序列至少包含一个数)。 示例 1: 示例 2: https://leetcode cn.com/problems/maximum product subarray/ 动态规划 其实这道题最直接的方法就是用 DP 来做,而且要用两个 dp 数组 ...
分类:
其他好文 时间:
2020-03-06 13:34:45
阅读次数:
59
MariaDB 10.4.12 Stable Row size too large ( 8126). Changing some columns to TEXT or BLOB may help. 1 修改my.ini文件在[mysqld]下面加入下面三行 2 新建一个查询进行如下操作将nombre ...
分类:
数据库 时间:
2020-03-06 10:45:56
阅读次数:
135
原文:钉钉调用审批流 进入钉钉 “钉钉开放平台” 下载SDK https://ding-doc.dingtalk.com/doc#/faquestions/vzbp02 1 public ActionResult Dingding(string sheetno, long dept, string ... ...
分类:
其他好文 时间:
2020-03-04 14:46:54
阅读次数:
121
Dressed atom 和远失谐光位移 半经典处理 全哈密顿为 $$ H=\frac{1}{2}\hbar\omega_0\sigma_z \vec{p}\cdot\vec{E} $$ 其中$\vec{E}=\vec{E_0}\cos(\omega t)$,已经取了偶极近似。在旋波近似下简化为 $ ...
分类:
其他好文 时间:
2020-03-04 14:32:37
阅读次数:
83
链接:https://leetcode-cn.com/problems/lian-xu-zi-shu-zu-de-zui-da-he-lcof/submissions/ 代码: class Solution { public: int maxSubArray(vector<int>& nums) { ...
分类:
编程语言 时间:
2020-03-04 14:19:07
阅读次数:
60
import subprocess # popen 打开进程文件指针 obj = subprocess.Popen("dir",shell=True,stdout=subprocess.PIPE) #pipe管道的意思 subprocess子进程 #stdout 标准输出 # stdout=subp ...
分类:
其他好文 时间:
2020-03-04 11:17:33
阅读次数:
65
一、简单动态字符串 Redis没有直接使用C语言传统的字符串表示,而是自己构建了一种名为简单动态字符串(SDS)的抽象类型作为Redis的默认字符串表示。 struct sdshdr { // 记录 buf 数组中已使用字节的数量 // 等于 SDS 所保存字符串的长度 int len; // 记录 ...
分类:
其他好文 时间:
2020-03-02 23:09:50
阅读次数:
82
python中%:1. 求模运算,相当于mod,也就是计算除法的余数,比如5%2就得到1。2. %还用在python的格式化输出,比如: a = 'test' print 'it is a %s' %(a) 打印的结果就是 it is a test 3.jupyter 中 %lsmagic Out[ ...
分类:
编程语言 时间:
2020-03-02 13:00:36
阅读次数:
70
关于这道题,没有提示的话是做不了的 提示:hint,那么去试试在url里传个hint http://123.206.87.240:8002/flagphp/?hint=0 显示同一网页上的源码: <?php error_reporting(0); include_once("flag.php"); ...
分类:
Web程序 时间:
2020-03-02 00:35:20
阅读次数:
83