随笔分类 -  Python

摘要:1、lineEdit组件 1.1、设置输入框的背景提示文本 关键字:Placeholder(占位文本) 1.2、在输入框中插入打开文件的图标 2、QTextBrowser组件 2.1、设置文本:setText('文本') 2.2、获取文本:toPlainText() 3、提示框 #消息框 #self 阅读全文
posted @ 2020-11-15 22:15 淡怀 阅读(873) 评论(0) 推荐(0) 编辑
摘要:参考教程:https://www.cnblogs.com/lovesoo/p/12491361.html 1、创建UI文件 2、UI文件转换为python文件 3、转换后的python文件 from PyQt5 import QtCore, QtGui, QtWidgets # 此文件仅修改触发的方 阅读全文
posted @ 2020-11-15 01:18 淡怀 阅读(945) 评论(0) 推荐(0) 编辑
摘要:""" PIL下载:https://www.lfd.uci.edu/~gohlke/pythonlibs/ Pillow‑8.0.1‑cp39‑cp39‑win_amd64.whl:Python3.9 Windows 64位 """ from appium import webdriver from 阅读全文
posted @ 2020-11-11 17:08 淡怀 阅读(1165) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/baijing1/p/9885891.html 阅读全文
posted @ 2020-11-09 17:09 淡怀 阅读(98) 评论(0) 推荐(0) 编辑
摘要:""" -*- coding:utf-8 -*- @Time :2020/11/4 19:02 @Author : @File :jar_encryption_util.py @Version:1.0 """ class JarEncryptionUtil: @staticmethod def st 阅读全文
posted @ 2020-11-07 12:41 淡怀 阅读(176) 评论(0) 推荐(0) 编辑
摘要:def del_endswith_none(str1: str): """ 删除字符串首尾的空字符(空格、换行) :param str1: """ s = str1 if str1 is not None: while True: if s.endswith(' ') or s.endswith(' 阅读全文
posted @ 2020-11-02 13:47 淡怀 阅读(959) 评论(0) 推荐(0) 编辑
摘要:一、代码 备注:封装好了(可直接调用) """ -*- coding:utf-8 -*- @Time :2021/12/10 20:02 @Author : @File : @Version:1.0 """ from typing import List import xlwt class JarE 阅读全文
posted @ 2020-10-08 19:03 淡怀 阅读(1508) 评论(0) 推荐(0) 编辑
摘要:""" -*- coding:utf-8 -*- @Time :2020/9/4 17:58 @Version:1.0 """ import requests def download(img_url, path, img_name): pic = requests.get(img_url, ver 阅读全文
posted @ 2020-09-26 21:07 淡怀 阅读(288) 评论(0) 推荐(0) 编辑
摘要:if __name__ == '__main__': value_list = ['1', '2', 'dasd', 'gfdgdfgegg', 'v的VS的'] print(*value_list, sep='\n') 阅读全文
posted @ 2020-09-26 15:47 淡怀 阅读(3139) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/weixin_45293202/article/details/107714707 阅读全文
posted @ 2020-09-26 14:32 淡怀 阅读(158) 评论(0) 推荐(0) 编辑
摘要:一、随机数 import random # 1 生成m、n之间的随机整数 print(random.randint(10, 99)) # 75 # 2 生成m、n之间的随机浮点数 print(random.uniform(10, 99)) # 98.37125047276466 # 3 生成0-1之 阅读全文
posted @ 2020-09-24 21:08 淡怀 阅读(763) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/env python # -*- coding: utf-8 -*- """ @Time :2020/9/23 18:16 @Author :维斯 @File :jar_project_util.py @Version :1.0 @Function: """ import os 阅读全文
posted @ 2020-09-23 19:29 淡怀 阅读(10506) 评论(0) 推荐(0) 编辑
摘要:一、图标说明 二、效果 xmind备注 【前置条件】【操作步骤】【SQL校验】【预期结果】【备注】 三、解析XMind 备注:已封装好 可直接调用 JarExcelUtil工具类:https://www.cnblogs.com/danhuai/p/13538291.html Xmind版本:XMin 阅读全文
posted @ 2020-09-21 11:10 淡怀 阅读(1152) 评论(0) 推荐(0) 编辑
摘要:def websocket(url, headers_dict=None, params_dict=None, result: list = None): """ websocket请求 :param url: :param headers_dict: :param params_dict: :pa 阅读全文
posted @ 2020-09-03 11:17 淡怀 阅读(3004) 评论(0) 推荐(0) 编辑
摘要:如何做一个网页送给女朋友做生日礼物:https://blog.csdn.net/zyh960/article/details/107687945?utm_source=app flask demo示例(视频教程):优特编程 阅读全文
posted @ 2020-09-02 11:23 淡怀 阅读(130) 评论(0) 推荐(0) 编辑
摘要:入门:https://www.runoob.com/w3cnote/python-func-decorators.html 阅读全文
posted @ 2020-08-31 19:45 淡怀 阅读(126) 评论(0) 推荐(0) 编辑
摘要:locust版本:1.2.3 https://www.cnblogs.com/shog808/p/13563515.html https://www.jianshu.com/p/9c4ffee61eea https://testerhome.com/topics/7607 一、快速上手 step1: 阅读全文
posted @ 2020-08-28 14:29 淡怀 阅读(284) 评论(0) 推荐(1) 编辑
摘要:总结:1、若父类中有构造函数、并且子类也有构造函数 则子类的构造函数中必须调用父类的构造函数 以此来初始化父类【如:super().__init__()】2、子类调用父类的属性及方法(用self、super()都可以 建议用super()调用父类的 这样好区分) 阅读全文
posted @ 2020-08-22 21:23 淡怀 阅读(126) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/2868b3193533 直接抛出异常 中断程序 捕获 try: 。。。 except Exception as e: print(e.args[0].reason.args[0]) 阅读全文
posted @ 2020-08-22 11:46 淡怀 阅读(118) 评论(0) 推荐(0) 编辑
摘要:一、字典与JOSN相互转换 import json if __name__ == '__main__': json_str = '{"latitude": "121.04925573429551", "tel": "13675480983", "longitude": "31.31559052249 阅读全文
posted @ 2020-08-06 15:03 淡怀 阅读(154) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示