自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 代码扫描工具之Klocwork

Klocwork is a static analysis tool used to scan software code at build time for security and logic flaws.https://help.klocwork.com/current/en-us/concepts/home.htm配置好server license 等相关信息之后可以在本地编译、扫描、上传报告。在coverity desktop 中create project之后,本地会生成project_root

2023-05-12 17:06:47 909 1

原创 python 画图工具库matplotlib学习(一)

画图import numpy as npimport matplotlib.pyplot as pltx = np.linspace(-1, 1, 50)y1 = 2 * x + 1y2 = x ** 2plt.figure()plt.plot(x,y1)# figure num 参数设置show出来的图形为figure几,figsize设置图片的sizeplt.figure(num=3, figsize=(8, 5))l1, = plt.plot(x, y2, label='up

2022-03-24 22:18:06 852

原创 python 将API获取到的数据写入exel

import osimport urllib.request, urllib.parse, urllib.error, sysfrom urllib import request, parseimport jsonimport configparserimport xlwtimport timedef write_to_exel(self): self.params['action'] = 'search' binary_data = urllib.parse

2022-03-24 19:35:17 601

原创 感觉很好用的configparser

configparser从API获取到的数据要进行去除第三方库的清洗, 定义一个exclude_libraries.ini文件,在脚本中通过configparser调用这个ini文件数据并进行过滤.config = configparser.ConfigParser()config.read('exclude_libraries.ini', encoding='utf-8')exclude_libraries_list = config['Exclude_Libraries'].get('exclu

2022-03-24 19:29:50 264

原创 urllib库学习

关于最近用到的urllib库的一些练习

2022-03-24 19:23:38 793

原创 selenium学习以及总结

selenium的使用安装seleniumpip install delenium下载浏览器驱动谷歌:http://npm.taobao.org/mirrors/chromedriver/1.一些基本用操作from selenium import webdriverfrom selenium.webdriver.common.keys import Keysimport timedriver = webdriver.Chrome()driver.get('https://www.b

2021-01-13 15:43:26 235 1

原创 pytest学习及总结(一)

@[TOC]pytest学习(一)pytest1.捕获异常pytest.raises(异常类型)2.标记测试函数1.显式指定函数名pytest 脚本路径/***.py::函数名2.使用模糊匹配pytest -k 模糊匹配名 路径/test_*.py3.pytest.mark在函数前加上@pytest.mark.finished测试时使用pytest -m finished 路径/***.py3.跳过测试如果测试中有一些函数需要被略过,则需要在需要被跳过的函数前加1. @pyt

2020-12-08 09:25:02 250

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除