错误python2 install python

python 报错AttributeError: '_TestResult' object has no attribute 'outputBuffer'问题,已解决

报错信息: 原因: 使用setupclass必须加@classmethod装饰器 解决方案: 在setupclass和teardownclass方法前面加@classmethod ......

python -m sysconfig快速查看 Python 的环境信息

C:\Users\daizichuan>python -m sysconfig Platform: "win-amd64" Python version: "3.10" Current installation scheme: "nt" Paths: data = "D:\miniconda3" i ......
sysconfig 环境 python Python 信息

python中关于continue(跳过)和 break (终止)的使用方法,易混淆

在 Python 中,continue 和 break 是两个控制流语句,用于在循环中改变程序的执行流程。它们的区别如下: continue:当程序执行到 continue 语句时,会跳过当前迭代中剩余的代码,直接进入下一次迭代。换句话说,continue 会终止当前迭代的剩余部分,然后开始下一次迭 ......
使用方法 continue 方法 python break

Python生成图形验证码

## 1.安装依赖 ``` pip install Pillow ``` ## 2.生成验证码 ``` # validCode.py import os import random from PIL import Image from PIL import ImageDraw from PIL im ......
图形 Python

[oeasy]python0069_帮助手册_pydoc_manual_document

帮助手册 回忆上次内容 上次了解了注释 注释是为了让程序更可读 注释不会影响程序运行速度 注释分为两种 单行的 以#开头 不能是字符串当中的# 多行的 三个" 三个' 多行注释还有什么特殊功能么?🤔 增加描述说明 原始文档如下图 ​ 添加图片注释,不超过 140 字(可选) 插入三引号注释 如下图 ......

C#常见编译错误记录

C#引用类库时出现黄色三角加感叹号的处理方法,一个C#项目 在引用中有个引用项上有个黄色三角加感叹号 导致报错。解决:类库的目标框架不一致,修改成一样就可以了。选中类库右击属性;“目标框架”,修改成与引用项目目标框架一致即可。 ......
常见 错误

linux源码编译安装Python3.9.6及pip

#### linux源码编译安装Python3.9.6及pip 1. 卸载之前的python ```shell sudo apt remove python3 sudo apt autoremove ``` 2. 安装依赖 ```shell sudo apt update sudo apt inst ......
源码 Python3 Python linux 9.6

python: more Layer Architecture and its Implementation in Python and mysql 8.0

mysql 8.0: drop table DuStudentList; #学生表 create table DuStudentList ( StudentId INT NOT NULL AUTO_INCREMENT comment'主键id', #自动增加, StudentName nvarcha ......

mongodb和python交互

mongodb和python交互 安装环境 pip install pymongo==4.2.0 官方文档:https://pymongo.readthedocs.io/en/stable/ 使用样例 引入包pymongo import pymongo 连接,创建客户端 client = pymon ......
mongodb python

Python的手机测试工具uiautomator2库的实现原理

使用python通过调试模式测试安卓手机APP, 使用uiautomator2库是比较方便的, 这个库的源码网址是: https://github.com/openatx/uiautomator2 通过阅读源码, 大概搞明白了其实现原理, 它是通过调用adbutils库, 获取UI的hierarch ......

python-字典列表中删除指定的键值对

```python dict_list = [ {"a": 1, "b": 2, "c": 3}, {"a": 11, "b": 22, "c": 33}, {"a": 111, "b": 222, "c": 333}, {"a": 1111, "b": 2222, "c": 3333}, ] fo ......
字典 python

ErrorCode17410(No more data to read from socket)错误

系统运行的过程中莫名其妙出现ErrorCode17410(No more data to read from socket)错误,只是某一个功能的sql执行出现,但是把sql语句复制到plsql执行又没问题,后面尝试对数据库的进程都清理就好了,应该是进程占用出了问题,具体命令如下 ```sh ps ......
ErrorCode 错误 socket 17410 more

【Azure 存储服务】记一次调用Storage Blob API使用 SharedKey Authorization出现的403错误

问题描述 使用Azure Storag Blob REST API上传文件,用SharedKey作为Authorization出现403错误。 错误消息 b'\xef\xbb\xbf<?xml version="1.0" encoding="utf-8"?><Error><Code>Authenti ......
Authorization SharedKey 错误 Storage Azure

使用 Python WebSSH 从浏览器连接到SSH终端

## [Introduction](https://www.digitalocean.com/community/tutorials/how-to-connect-to-a-terminal-from-your-browser-using-python-webssh#introduction) Or ......
终端 浏览器 Python WebSSH SSH

Spark使用Python开发和RDD

# 使用PySpark ## 配置python环境 在所有节点上按照python3,版本必须是python3.6及以上版本 ```Shell yum install -y python3 ``` 修改所有节点的环境变量 ```Shell export JAVA_HOME=/usr/local/jdk ......
Python Spark RDD

Python Loguru日志封装 - 装饰器实现

# Python Loguru日志封装 ``` #!/usr/bin/env python # _*_ coding:utf-8 _*_ # @Time : 2023/6/25 15:49 # @Author : jingang.hou082613@gmail.com # @Site : # @Fi ......
Python Loguru 日志

整数取反 python切片

https://leetcode.cn/problemset/all/ 第7题 整数取反在 Python 中,切片(slicing)是一种从序列(如字符串、列表、元组等)中获取子序列的方法,不能对整数做切片,需要先转序列为整数。切片操作使用方括号 `[]` 来实现,可以包含开始索引、结束索引和步长。 ......
整数 python

matlab的低级错误

原来的代码如下: clear all; t=0:0.1:10; k(i)=2*(1+exp(-t(i)))/(1-exp(-t(i))); plot(t,k); axis([0 10.5 0 21]) grid on ylabel('K'); xlabel('t'); title('the rela ......
错误 matlab

Python面向对象之元类

# Python面向对象之元类 ## 【一】前言引入 > 千万不要被所谓“元类是99%的python程序员不会用到的特性”这类的说辞吓住。因为**每个中国人,都是天生的元类使用者** - 我们引用太极的思想 - 道生一,一生二,二生三,三生万物 - 即我是谁?我从哪里来?我到哪里去? > 我们拿到P ......
对象 Python

解决使用pip3 install 时出现的"error: externally-managed-environment"方案

当我使用pip3 install 来安装一些需要使用到的包时,出现了如下错误: 解决方案: 在 pip3 install package 后面加上参数 “--break-system-packages” 参考: https://stackoverflow.com/questions/75608323 ......

python 字符串前加f、r、b、u

# python 字符串前加f、r、b、u ### 一、字符串前加"f" 1. **%** 可以使用 % 格式化字符串。 ``` c = (250, 250) # 使用 % 格式化 s1 = "坐标为:%s" % c # TypeError: not all arguments converted ......
字符串 字符 python

python使用 flask+vue 制作前后端分离图书信息管理系统

哈喽兄弟们,今天咱们来用Python实现一个前后端分离的图书信息管理系统。 制作前后端分离图书信息管理系统的思路: 1、前端部分 首先,我们可以使用 VueJS 作为前端框架,并通过 Vue CLI 工具进行创建和管理项目。 2、后端部分 后端部分我们可以采用 Python Flask 框架,这个框 ......
管理系统 python 图书 系统 flask

python 中 fnmatch模块, textwrap 模块

# python 中 fnmatch模块, textwrap 模块 **fnmatch模块** 查找文件 使用fnmatch来查找特定的文件,大部分情况下,使用字符串匹配查找特定的文件就能满足需求,如果需要更加灵活的字符串匹配,可以使用标准库中的fnmatch库,这个库专门用来进行文件名匹配,支持使 ......
模块 textwrap fnmatch python

How To Install and Enable SSH Server on Debian 10

https://devconnected.com/how-to-install-and-enable-ssh-server-on-debian-10/ How To Install and Enable SSH Server on Debian 10 written by Schkn This tu ......
Install Enable Debian Server How

【python爬虫案例】用python爬豆瓣音乐TOP250排行榜!

[toc] # 一、爬虫对象-豆瓣音乐TOP250 今天我们分享一期python爬虫案例讲解。爬取对象是,豆瓣音乐TOP250排行榜数据:https://music.douban.com/top250 ​![豆瓣音乐TOP250页面](https://img2023.cnblogs.com/blog ......
python 爬虫 豆瓣 案例 排行榜

word VBA Selection.PasteSpecial 4198 运行时错误

If (.Execute) Then Selection.Copy '要定位到表格中 my_table.Cell(row_index, 1).Select 'Selection.Delete CreateObject("Excel.Application").Wait (Now + TimeValu ......
PasteSpecial Selection 错误 word 4198

python | strip()函数的详解

**strip**:⽤于移除字符串头尾指定的字符(默认为空格)或字符序列。注意:该⽅法只能删除开头或是结尾的字符,不能删除中间部分的字符。 ![](https://img2023.cnblogs.com/blog/3085423/202306/3085423-20230629173929020-76 ......
函数 python strip

Centos7 离线安装python3.7

scp root@10.10.10.1:/etc/yum.repos.d/test.repo . # 需要安装的依赖 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel readline-devel tk-devel m ......
Centos7 python3 Centos python

Python seaborn库绘图

> 一直没搞清楚这个库到底是怎么工作的 贴个链接在这里,及时整理! ## 参考链接 1. https://zhuanlan.zhihu.com/p/75477750 2. https://zhuanlan.zhihu.com/p/158751106 ......
seaborn Python

【python爬虫案例】用python爬豆瓣电影TOP250排行榜!

# 一、爬虫对象-豆瓣电影TOP250 前几天,我分享了一个python爬虫案例,爬取豆瓣读书TOP250数据:[【python爬虫案例】用python爬豆瓣读书TOP250排行榜! ](https://www.cnblogs.com/mashukui/p/17514196.html) 今天,我再分 ......
python 爬虫 豆瓣 案例 排行榜