会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
林深见鹿,海蓝见鲸
博客园
首页
新随笔
联系
订阅
管理
2022年3月11日
python编写linux内存监控发送邮件
摘要: # _*_ coding: utf-8 _*_ # auther = 林深见鹿,海蓝见鲸 import subprocess import datetime def time_stamp(): now_time = datetime.datetime.now() print(now_time) de
阅读全文
posted @ 2022-03-11 20:16 林深见鹿,海蓝见鲸
阅读(66)
评论(0)
推荐(0)
2022年3月9日
python字符类型
摘要: # -*- coding:utf-8 -*- # auther = 林深见鹿,海蓝见鲸 ''' dict = {"Bob":["class1"],"Alex":"class2","Gob":"class3","Joe":"class4"} dict['jiao'] = "class5" print(
阅读全文
posted @ 2022-03-09 21:19 林深见鹿,海蓝见鲸
阅读(103)
评论(0)
推荐(0)
2021年11月27日
python中数据类型
摘要: 一、python中数据类型(红色为可变类型) 1、字符串 str2、布尔类型 bool3、整数 int 4、浮点数 float5、数字 (int和float)6、列表 list7、元组 tuple8、字典 dict9、日期 date 二、可变类型 可变类型:在id(内存地址)不变的情况下,value
阅读全文
posted @ 2021-11-27 23:42 林深见鹿,海蓝见鲸
阅读(164)
评论(0)
推荐(0)
python实现九九乘法表
摘要: # -*- coding:utf-8 -*- # __author__ = "林深见鹿海蓝见鲸" # ② 九九乘法表 name = "99乘法表" title = name.center(60,"-") print(title) for i in range(1,10): # print("I:",
阅读全文
posted @ 2021-11-27 23:01 林深见鹿,海蓝见鲸
阅读(167)
评论(0)
推荐(0)
python编写随机抽取京牌
摘要: # -*- coding:utf-8 -*- # __author__ = "林深见鹿海蓝见鲸" # ③随机20个京牌 import string import random car_list = [] begin = "京" count = 0 while count<3: # count+=1
阅读全文
posted @ 2021-11-27 22:57 林深见鹿,海蓝见鲸
阅读(135)
评论(0)
推荐(0)
2021年11月1日
python3PIL模块实现图片加文字/小图片水印
摘要: # -*- coding:utf-8 -*- # __author__ = "林深见鹿海蓝见鲸" from PIL import Image, ImageDraw, ImageFont ''' 图片增加文字水印 convert('RGB')进行通道转换 mode:模式,通常用"RGB"这种模式 si
阅读全文
posted @ 2021-11-01 23:55 林深见鹿,海蓝见鲸
阅读(440)
评论(0)
推荐(0)
2021年9月23日
python3实现url编码/解码
摘要: # -*- coding:utf-8 -*- #__author__ = "林深见鹿海蓝见鲸" from urllib.parse import unquote,quote def Unquote(): url = 'http%3A//123' unquote_url = unquote(url)
阅读全文
posted @ 2021-09-23 21:16 林深见鹿,海蓝见鲸
阅读(282)
评论(0)
推荐(0)
2021年9月13日
python3实现读取Excel进行接口自动化测试
摘要: # -*- coding:utf-8 -*- # auther = 林深见鹿 # excel_controller.py import xlrd import xlwt from CoreMail.Tools import excel_data ''' xlrd.open_workbook(file
阅读全文
posted @ 2021-09-13 23:28 林深见鹿,海蓝见鲸
阅读(297)
评论(0)
推荐(0)
2021年8月12日
常用正则表达式
摘要: 一、校验数字的表达式 1. 数字:^[0-9]*$ 2. n位的数字:^\d{n}$ 3. 至少n位的数字:^\d{n,}$ 4. m-n位的数字:^\d{m,n}$ 5. 零和非零开头的数字:^(0|[1-9][0-9]*)$ 6. 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(
阅读全文
posted @ 2021-08-12 17:10 林深见鹿,海蓝见鲸
阅读(22)
评论(0)
推荐(0)
2021年6月19日
Python3实现简单的接口性能测试
摘要: # -*- coding:utf-8 -*- import requests import datetime import time import threading ''' allow_redirects = False禁止重定向,添加在request参数后 get请求用params传参 post
阅读全文
posted @ 2021-06-19 10:12 林深见鹿,海蓝见鲸
阅读(419)
评论(0)
推荐(0)
下一页
公告