首页 > 编程语言
python3+requests实现接口自动化1
逐步完善中……以一个登录接口为例 目录 1、项目目录 2、登录接口和登录用例 3、配置文件 4、run_all 1、项目目录 以之前搭建的aiopms为平台写接口自动化,其中case中放模块和用例,common中放数据库连接信息等,config放邮箱登录信息,logs存放日志文件,report放报告 ...
分类:编程语言   时间:2020-06-28 22:33:42    收藏:0  评论:0  赞:0  阅读:77
13.实现非平衡二叉树的单旋(左旋和右旋)代码实现JavaScript版
实现非平衡二叉树的单旋: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <ti ...
分类:编程语言   时间:2020-06-28 22:00:52    收藏:0  评论:0  赞:0  阅读:64
题目列表, 美团笔试题, 字符串数组比较
字符串数组的排序,重写comparator 方法compare()。 import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in ...
分类:编程语言   时间:2020-06-28 21:50:31    收藏:0  评论:0  赞:0  阅读:68
LeetCode | 0701. Insert into a Binary Search Tree 二叉搜索树中的插入操作【Python】
LeetCode 0701. Insert into a Binary Search Tree 二叉搜索树中的插入操作【Medium】【Python】【二叉树】 Problem LeetCode Given the root node of a binary search tree (BST) an ...
分类:编程语言   时间:2020-06-28 21:45:35    收藏:0  评论:0  赞:0  阅读:62
java8 .stream().sorted().filter().map().collect()用法
https://blog.csdn.net/shine_guo_star/article/details/94383319 steam():把一个源数据,可以是集合,数组,I/O channel, 产生器generator 等,转化成流。 map():用于映射每个元素到对应的结果。以下代码片段使用 ...
分类:编程语言   时间:2020-06-28 21:44:53    收藏:0  评论:0  赞:0  阅读:187
LeetCode | 0098. Validate Binary Search Tree验证二叉搜索树【Python】
LeetCode 0098. Validate Binary Search Tree验证二叉搜索树【Medium】【Python】【二叉树】 Problem LeetCode Given a binary tree, determine if it is a valid binary search ...
分类:编程语言   时间:2020-06-28 21:43:59    收藏:0  评论:0  赞:0  阅读:61
Python操作xml文件【多测师】
把如下的文件存为:file.xml<?xml version="1.0" encoding="utf-8"?> <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3. ...
分类:编程语言   时间:2020-06-28 21:40:12    收藏:0  评论:0  赞:0  阅读:58
python使用pandas读取excel
# -*- coding: utf-8 -*- import pandas as pd from collections import defaultdict import json from pathlib import Path DATA = "6.28" dd = defaultdict(li ...
分类:编程语言   时间:2020-06-28 21:38:48    收藏:0  评论:0  赞:0  阅读:132
Python字典_循环_全局变量
一,字典与循环 如果你在 for 语句里面用字典,程序会遍历字典中的所有键。例如下面这个 print_hist 函数就输出其中的每一个键与对应的键值: $ cat c.py #!/bin/python def histogram(s): d = dict() for c in s: if c not ...
分类:编程语言   时间:2020-06-28 21:36:05    收藏:0  评论:0  赞:0  阅读:88
P3368 【模板】树状数组 2
P3368 【模板】树状数组 2 #include<bits/stdc++.h> using namespace std; const int N=5e5+10; int a[N]; int c[N<<2]; int n,m; int lowbit(int x){ return x&-x; } vo ...
分类:编程语言   时间:2020-06-28 21:34:51    收藏:0  评论:0  赞:0  阅读:80
python字符串、列表通过值找索引/键
python透过“值”找字符串和列表中的索引和键。 1 #!usr/bin/env python3 2 #-*- coding:utf-8 -*- 3 4 ''' 5 python通过值找索引或键 6 ''' 7 lang1 = "study python" #定义字符串 8 print(lang1 ...
分类:编程语言   时间:2020-06-28 21:33:36    收藏:0  评论:0  赞:0  阅读:89
P3374 【模板】树状数组 1
P3374 【模板】树状数组 1 #include<bits/stdc++.h> using namespace std; const int N=5e5+10; int n,m; int a[N]; int c[N<<2]; int lowbit(int x){ return x&-x; } vo ...
分类:编程语言   时间:2020-06-28 21:33:03    收藏:0  评论:0  赞:0  阅读:80
单源最短路问题 Dijkstra 算法(朴素+堆)
选择某一个点开始,每次去找这个点的最短边,然后再从这个开始不断迭代,更新距离. 代码: 朴素(vector存图) #include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <algorithm ...
分类:编程语言   时间:2020-06-28 21:32:45    收藏:0  评论:0  赞:0  阅读:68
C++ for 循环的5种用法
介绍了C++ for 循环的5种用法。通过这里的案例,也可以熟悉对string 容器的使用。可以通过[] 来访问string 对象。 for each std::for_each for in for : for #include <iostream> #include <map> #include ...
分类:编程语言   时间:2020-06-28 21:31:01    收藏:0  评论:0  赞:0  阅读:78
c/c++内存分区
1.栈区(stack): 主要用于存储函数的参数和局部变量。栈区由系统进行内存管理,在函数执行完成时,系统自动释放栈区的内存, 而不需要用户的参与,整个程序的栈区的大小可以在编译器中由用户自行设定。 2.堆区 由用户手动申请,手动释放。 如果用户忘记对所申请的内存资源进行释放,该内存资源可能会在程序 ...
分类:编程语言   时间:2020-06-28 21:29:58    收藏:0  评论:0  赞:0  阅读:58
python字符串和编码
一.字符串 1.字符串常见操作 拼接字符串 采用"+"号来拼接字符串,但是不能直接与其他数据类型拼接,需要str()来转换。 num1 = 11111 str1 = 'heiheihei' print(str1+str(num1)) ''' 输出 heiheihei11111 ''' 计算字符串长度 ...
分类:编程语言   时间:2020-06-28 21:29:38    收藏:0  评论:0  赞:0  阅读:71
LeetCode | 0700. Search in a Binary Search Tree二叉搜索树中的搜索【Python】
LeetCode 0700. Search in a Binary Search Tree二叉搜索树中的搜索【Easy】【Python】【二叉树】 Problem LeetCode Given the root node of a binary search tree (BST) and a val ...
分类:编程语言   时间:2020-06-28 21:28:13    收藏:0  评论:0  赞:0  阅读:69
微服务技术栈:流量整形算法,服务熔断与降级
本文源码:GitHub·点这里 || GitEE·点这里 一、流量控制 1、基本概念 流量控制的核心作用是限制流出某一网络的某一连接的流量与突发,使这类报文以比较均匀的速度流动发送,达到保护系统相对稳定的目的。通常是将请求放入缓冲区或队列内,然后基于特定策略处理请求,匀速或者批量处理,该过程也称流量 ...
分类:编程语言   时间:2020-06-28 21:21:51    收藏:0  评论:0  赞:0  阅读:60
LeetCode209. 长度最小的子数组
方法一 暴力枚举所有可能的子数组,也就是枚举子数组的所有开始下标和结束下标,计算子数组的和,如果子数组的和小于等于s,就更新最小长度。 class Solution { public: int minSubArrayLen(int s, vector<int>& nums) { if(nums.si ...
分类:编程语言   时间:2020-06-28 21:21:16    收藏:0  评论:0  赞:0  阅读:80
Python应用基础-根据指定文件生成XML
因项目需要根据指定格式的文件生成XML标注文件,可以方便使用LabelImg打开进行编辑和查看。其原始文件默认使用逗号进行分隔,如下所示: 第1个值:原始图片中切图小文件,以AIpng_x,其中x代表原始图片的第几个切图文件 第2~5值:分别对应于ymin, xmin, ymax, xmax 第6个 ...
分类:编程语言   时间:2020-06-28 21:20:03    收藏:0  评论:0  赞:0  阅读:65
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!