发面 试题python网络

virtualbox 网络设置

全局的网络: 虚拟器内静态网络配置: ......
virtualbox 网络

[922] Implementation of zooming to selected features by Python

ref: ArcPy.mp Get Selected Features Extent ref: Python/ArcPy classes/Geometry # Set the path to your project file (.aprx) project_file = r"Map 1.3 Her ......

Windows Python 访问达梦数据库(操作示例)

Windows Python 访问达梦数据库(操作示例) 一、前提条件 本篇博客以访问本地达梦数据库(DM8)为基础进行演示。(前提:本地已经安装了 DM8 数据库,并配置了相应的 Python 访问环境!) 关于 Windows 安装达梦数据库,请参考博客:Windows 安装 达梦数据库 关于 ......
示例 Windows 数据库 数据 Python

Python + Selenium + Firefox 使用代理 auth 的用户名密码授权

Python + Firefox + 插件(closeproxy.xpi) 其中,closeproxy.xpi文件,需要Google、Bing搜下都能搜到下载地址 完整的测试代码如下: from selenium import webdriver from selenium.webdriver.fi ......
Selenium 用户名 密码 Firefox 用户

Windows 10连接网络打印机报错“0x0000011b”的解决方法

网络打印,win10/11都经常遇到这样那样的问题。今天遇到一台新装的windows 10系统连接网络打印机报错:0x0000011b 网上查了一圈,普遍说的是这个情况,微软官方介绍:通过命名管道使用 RPC 也就是网上说的最多的注册表方式: Windows Registry Editor Vers ......

关于Python的打包与编译

1、nuitka 编译成一个so文件 nuitka3 --module --include-module=target_file_or_dir target_file_or_dir 2、compileall 编译成pyc python3 -m compileall -b <dir> # 删除相关的p ......
Python

Oracle集群升级迁移—主机网络设置及交换机侧bond vlan划分

目录Oracle集群升级迁移—主机网络设置及交换机bond vlan划分网络规划操作系统层面的IP设置bond类型介绍设置bond1和bond0交换机侧的设置(省略) Oracle集群升级迁移—主机网络设置及交换机bond vlan划分 网络规划 按照工程师要求,配置了5个IP供集群使用。1个IP为 ......
集群 交换机 主机 Oracle 网络

Python3+selenium3+Firefox 设置浏览器headless模式运行+下载文件

设置Firefox headless模式 def setUp(self): # Firefox headless模式运行 options = webdriver.FirefoxOptions() options.add_argument('-headless') self.driver = webd ......

python 文件拆分与合并

文件拆分与合并 有的时候,存储和传输对文件的大小有约束,这个时候就可以使用文件拆分与合并 import glob import sys # chunk_size的单位是byte def split_file(file_path, chunk_size): with open(file_path, ' ......
文件 python

Windows Python 访问达梦数据库(环境配置)

Windows Python 访问达梦数据库(环境配置) 一、前提条件 本篇博客以访问本地达梦数据库(DM8)为基础进行演示。(前提:本地已经安装了 DM8 数据库!) 关于 Windows 安装达梦数据库,请参考博客:Windows 安装 达梦数据库 关于 Docker 安装达梦数据库,请参考博客 ......
Windows 环境 数据库 数据 Python

【Python&RS】基于Python批量镶嵌拼接遥感影像/栅格数据

​ 我之前分享过【Python&RS】基于GDAL镶嵌拼接遥感影像,但是没有加入批量处理的代码。最近正好有这个需求,所以就对原来的代码进行了优化加入了批量拼接的代码。现在只需输入一个文件夹即可将其中的影像全部镶嵌起来。 ......
栅格 Python 遥感 影像 数据

神经网络基础篇:逻辑回归

逻辑回归(Logistic Regression) 对于二元分类问题来讲,给定一个输入特征向量\(X\),它可能对应一张图片,想识别这张图片识别看它是否是一只猫或者不是一只猫的图片,想要一个算法能够输出预测,只能称之为\(\hat{y}\),也就是对实际值 \(y\) 的估计。更正式地来说,想让 \ ......
网络基础 逻辑 神经 基础 网络

[921] Replace texts, copy formats, align paragraphs in a Word document by Python

The whole steps of this function are as follows: Open the Word document. Replace the text with the new text. Copy the format from the source cell to t ......
paragraphs document Replace formats Python

Python猴子补丁

Python猴子补丁 介绍 猴子补丁是一种替换方法的方式。因为python是动态语言,所以我们在方法执行之前,可以将方法替换,以达到我们期望的结果。需要理解的是,python的方法在加上括号之前,代表的的只是方法的内存,可以被当做一个变量进行传递。 使用 # 示例class Test: a = 1 ......
猴子 补丁 Python

[918] Copy the formatting from one cell in a table of a Word document to another cell in Python

To copy the formatting from one cell in a table of a Word document to another cell, you can use the python-docx library in Python. Here's a step-by-st ......
cell formatting document another Python

[919] Change the horizontal alignment of a cell to center within a table of a Word document using Python

To change the horizontal alignment of a cell to center within a table of a Word document using Python and the python-docx library, you can set the ali ......
horizontal alignment document Change Python

[920] Copy the font style from one cell in a table of a Word document to another cell using Python

To copy the font style from one cell in a table of a Word document to another cell using Python and the python-docx library, you can access the font p ......
cell document another Python style

[916] Replace text in a Word document using Python

To replace text in a Word document using Python, you can use the python-docx library, which allows you to work with Microsoft Word files (.docx). If y ......
document Replace Python using text

[917] Replace text in a specific table within a Word document using Python

To replace text in a specific table within a Word document using Python, you can use the python-docx library to access and modify the content of the t ......
document specific Replace Python within

python中json模块

import json string = '{"name":"xxx","age":18,"object":[{"数学":100,"语文":90,"英语":70}]}' print(string) print(type(string)) # 将json字符串转为python字典 data_dic = ......
模块 python json

python sys.path介绍

python sys.path介绍 介绍 当我们导入模块时,python解释器会通过sys.path中的环境变量搜索。sys.path是一个列表,里面包含已添加到环境变量中的路径。使用sys.path.append({路径})可以往里面添加自定义的环境变量。 使用 当我们想要导入某个文件中的文件失败 ......
python path sys

三、python基本知识(1)

三、python基本知识(1) 1.数据 什么是数据?在python中像数字,汉字,英文,图片,音频都是数据。目前了解就可以了 打开命令窗口,win+r 输入cmd 打开python 2.变量和标识符 什么是变量? 当我们编写代码的时候,我们会找一块地方存放数据,而数据存放一个的时候还特别好找,当有 ......
基本知识 知识 python

使用卷积神经网络训练手写数字识别模型(CNN)

https://www.cnblogs.com/zylyehuo/ 效果展示 目录结构 README.md # Basic MNIST Example pip install -r requirements.txt python main.py # CUDA_VISIBLE_DEVICES=2 py ......
卷积 神经网络 模型 神经 数字

4. 卷积神经网络

1. 机器学习中两个主要问题 1.1 回归 1.2 分类 分类是可交换的,可以将狗称为第一类,猫是第二类,也可以反过来。 卷积是可交换的 上式是分类的损失函数,\(y\)是0或1,\(\hat {y} \epsilon [0 , 1]\) 2. 数学过程 上图就是卷积的运算 后证明:若\(u(x) ......
卷积 神经网络 神经 网络

Python用KNN(K-近邻)回归、分类、异常值检测预测房价、最优K值选取、误差评估可视化

全文链接:https://tecdat.cn/?p=33917 原文出处:拓端数据部落公众号 KNN是一种非参数学习算法,这意味着它不会对底层数据做出任何假设。这是一个非常有用的特性,因为大多数客户的数据并不真正遵循任何理论假设,例如线性可分性,均匀分布等等。 何时应使用KNN? 假设您想要租一间公 ......
近邻 误差 房价 Python KNN

二、关于python语言的介绍与安装

二、关于Python语言的介绍与安装 1.什么是Python语言? 在前面我们知道了,Python就是我们用于与计算机进行交流的语言,这里我们在解释一下,Python有一个软件我们叫做解释器的东西,这就是把我们编写的代码转换成计算机语言,让计算机能看懂,怎么运行的呢,在目前的高级语言由大致分为两种解 ......
语言 python

python

num = int(input("请输入一个数字:")) square = num*num; print(num,"的平方为:",square) a=int(input("请输入矩形的高:")) b=int(input("请输入矩形的宽:")) print("矩形的面积为:",end="") pri ......
python

【Python】解决pip安装时dependency conflict

用pip install xxx安装库时有时候会遇到下面提示: To fix this you could try to: 1. loosen the range of package versions you've specified 2. remove package versions to a ......
dependency conflict Python pip

Python批量处理aida64extreme收集到的硬件信息

因需收集部分驻外同事电脑的硬件信息(未连公司内网,无法使用桌管软件统一采集),采用aida64extreme收集后再通过python处理写入数据库。 一.创建表 createtable.py #!/usr/bin/python3 #coding:utf-8 import pymysql db = p ......
extreme 硬件 Python 信息 aida

21.1 Python 使用PEfile分析PE文件

PeFile模块是`Python`中一个强大的便携式第三方`PE`格式分析工具,用于解析和处理`Windows`可执行文件。该模块提供了一系列的API接口,使得用户可以通过`Python`脚本来读取和分析PE文件的结构,包括文件头、节表、导入表、导出表、资源表、重定位表等等。此外,PEfile模块还... ......
文件 Python PEfile 21.1 21