void recursion(int* t, int minute, int hour, int n, int cur, int start, char** arr, int* pst){ if (minute >= 60 || hour >= 12) return; if (cur == n){ ...
分类:
其他好文 时间:
2020-12-04 10:57:49
阅读次数:
8
$data = $request->except('_token');$file = $request->file('g_pic')->store('img');$data['g_pic'] = '/'.$file;RedisModel::create($data);return redirect( ...
分类:
其他好文 时间:
2020-12-04 10:56:14
阅读次数:
6
#代码如下: `from tkinter import * from random import * import threading from tkinter.messagebox import showinfo from tkinter.messagebox import askquestion ...
分类:
其他好文 时间:
2020-12-02 12:39:52
阅读次数:
5
本质:测试步骤一致,测试数据不同 import pytest ''' 是对列表中的对象循环,然后一一的赋值 对象: 列表 元组 字典 ''' def add(a,b): return a + b #列表 @pytest.mark.parametrize('a,b,expect',[ [1,1,2], ...
分类:
其他好文 时间:
2020-12-02 12:33:04
阅读次数:
4
simple js 题目描述:小宁发现了一个网页,但却一直输不对密码。(Flag格式为 Cyberpeace{xxxxxxxxx} ) 打开题目后,有一个Enter password框,要求输入密码,随便输入“123” 输入“123”结果为 开发者工具F12查看页面源代码 将JS代码复制出来进行分析 ...
分类:
Web程序 时间:
2020-12-02 12:25:20
阅读次数:
12
equal()算法比较简单,它的作用是比较两个容器是否相等然后返回布尔值,它有两种重载的实现方式,先看下算法的定义: 1 // TEMPLATE FUNCTION equal WITH PRED 2 template<class _InIt1, 3 class _InIt2, 4 class _Pr ...
分类:
编程语言 时间:
2020-12-02 12:20:08
阅读次数:
6
1、如何在外部访问类里面的私有方法 通过 实例化对象._+类名__+私有方法名 举例: class people: def init(self, name): self.name = name def getName(self): # 实例方法 return self.name def __say( ...
分类:
编程语言 时间:
2020-12-02 12:19:22
阅读次数:
7
使用的库 bs4 requests pymongo fastapi uvicorn 爬取ip 网络上搜索一下有很多提供HTTP代理的网站,直接使用BeautifulSoup将IP爬下来。 html =requests.get(url).text bs =BeautifulSoup(html,'htm ...
分类:
编程语言 时间:
2020-12-02 12:09:56
阅读次数:
6
// 一元二次方程求解 (函数实现方式) // 重复执行, 直到按Ctrl+Z结束 #include <math.h> #include <stdio.h> // 函数声明 void solve(double a, double b, double c); // 主函数 int main() { d ...
分类:
其他好文 时间:
2020-12-02 12:05:39
阅读次数:
5
格式: public static 返回值类型 方法名(参数){ 方法体; return数据; } 1.public state 修饰符,目前先记住这个格式 2.返回值类型 方法操作完毕之后返回的数据的数据类型 如果方法操作完毕,没有数据返回,这里写void,而且方法体中一般不写return 3.方 ...
分类:
其他好文 时间:
2020-12-01 12:36:29
阅读次数:
6