39

Could not fetch URL https://pypi.org/simple/keras-bert/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443):

pip下载包的时候报错 Could not fetch URL https://pypi.org/simple/keras-bert/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pyp ......

Variable 'xxxx' is accessed from within inner class, needs to be final or effectively final-Lambda 表达式的变量与作用域

#### 问题的原因 问题代码: ``` public static void main(String[] args) { Integer sum = 0; Integer count = 0; List list = new ArrayList(Arrays.asList(1,2,3,4,5)); ......

requests.exceptions.ProxyError: HTTPSConnectionPool(host='xxx', port=443)

# 绕过系统设置的代理 # 方法一: session = requests.Session() session.trust_env = False response = session.get('http://ff2.pw') # 方法二:(多人亲测可以直接结局这个问题) proxies = { " ......

39.volatile、mutable和explicit关键字的用法

# 39.volatile、mutable和explicit关键字的用法 ## 1.**volatile** ==☀警告== ``` volatile的确切含义与机器有关,只能通过阅读编译器文档来理解。要想让使用了volatile的程序在移植到新机器或新编译器后仍然有效,通常需要对该程序进行某些改变 ......
volatile explicit 关键字 mutable 关键

Windows远程设置''不可复制''的权限

起因: 有一个技术部门的同事需要远程其他同学的电脑进行操作,但是不允许他复制目标电脑上的文件,避免造成资料外泄 解决办法: 组策略编辑器中,设置 计算机配置 -> 管理模板 -> windows组件 -> 远程桌面服务 -> 远程桌面会话主机 -> 不允许剪贴板重定向(已启用) ......
39 权限 Windows

【转】python踩坑(FileNotFoundError: Could not find module '此处省略了一些路径win_amd64.dll' (or one of its dependencies). Try using the full path with constructor syntax.)

1、报错 (FileNotFoundError: Could not find module '此处省略了一些路径\site-packages\scipy\.libs\libbanded5x.GL5FZ7Y77HIKQFNMZKUOMV5GID6YMX2V.gfortran-win_amd64.dl ......

代码随想录算法训练营第二十二天| 39. 组合总和 40.组合总和II 131.分割回文串

39. 组合总和 思路: 虽然可以是重复的,但是考虑到组合没有顺序这一说,所以还是要保留startIndex, sum不要再遍历一遍,再相加,应该跟随path,一起相加 代码: 1 void combinationSum_trackBack(vector<int>& candidates, int ......
总和 随想录 回文 训练营 随想

dmPython连接达梦数据库,查询含有特殊字符报错'gbk' codec can't decode byte 0xaa in position 22: illegal multibyte sequence

解决方法,可以在应用连接字符串url 连接属性加上local_code=1指定客户端字符编码方式。 #local_code=1 表示执行客户端的本地编码是UTF-8,否则默认是GBKdm_conn = dmPython.connect(user=dm_user, password=dm_passwo ......
multibyte 字符 dmPython 39 position

Python报错 | TypeError: descriptor 'date' requires a 'datetime.datetime' object but received a 'int'

**报错信息** 使用python创建一个datetime.data类的时候,报如下错误: ```python TypeError: descriptor 'date' requires a 'datetime.datetime' object but received a 'int' ``` ** ......
39 datetime descriptor TypeError requires

[GPT] 用 document.querySelector('.xxx') 选择下级的第二个 div 要怎么写

要选择类名为 .xxx 的元素下的第二个子<div>元素,可以将 querySelectorAll()方法与CSS选择器一起使用。 以下是一个示例: const secondChildDiv = document.querySelectorAll('.xxx > div')[1]; 在本例中,doc ......
下级 querySelector document 39 GPT

在Vscode使用命令npm报错-The operation was rejected by your operating system. npm ERR! It's possible that the file was already in use (by a text editor or antivirus)

##报错信息: PS D:\disk\xubo\个人博客文章\27-Vue\资料(含课件)\vuedemo\vueproject> npm i pubsub-js npm ERR! code EPERM npm ERR! syscall open npm ERR! path D:\disk\soft ......
npm antivirus operation operating was

39. 拓扑排序

# 一、什么是拓扑排序 拓扑排序是对有向无圈图的顶点的一种排序,它使得如果存在一条从 $v_{i}$ 到 $v_{j}$ 的路径,那么排序中 $v_{j}$ 出现在 $v_{j}$ 的后面。有向边 (v,w) 表明任务 v 必须在任务 w 前完成。显然,如果图含有圈,那么拓扑排序是不可能的,因为对于 ......
拓扑 39

51.pyinstaller打包后,打开exe程序提示SyntaxError: Non-UTF-8 code starting with '\x90' in file的问题

最后开发了一款小工具,然后确定一切测试没有问题,想通过pyinstaller将其打包成exe,像类似的打包以前也经常打包的,复杂一点的也都是打包成功的,但这里感觉程序很简单,打包居然出现了以下错误。 我的python版本是3.8.9,然后pyinstaller版本是5.9.0,不知道会不会是版本不兼 ......

【每日一题】Problem 505B. Mr. Kitayuta's Colorful Graph

[原题](https://codeforces.com/contest/505/problem/B) #### 解决思路 考虑到数据量不大($2 \le n \le 100, 2 \le m \le 100, 1 \le a_i \lt b_i \le n, 1 \lt c_i \le m)$),因 ......
Kitayuta Colorful Problem Graph 505

python + requests:请求头('Content-Type': 'multipart/form-data'),并且files和其他参数均正确定义,但是文件上传一直失败,需要使用MultipartEncoder

### 解释 1. 在使用'Content-Type': 'multipart/form-data'上传文件时,你需要将文件作为请求体的一部分进行传输。而由于文件可能非常大,因此需要将文件分成多个部分进行传输。这就需要使用多部分编码(Multipart Encoding)来将文件分割成多个部分,并将 ......

System.Data.SqlClient.SqlException (0x80131904): Invalid object name 'Person'.

@@abp Microsoft.Data.SqlClient.SqlException (0x80131904): Invalid object name 请求接口报错:System.Data.SqlClient.SqlException (0x80131904): Invalid object n ......

引用 github.com/segmentio/kafka-go v0.4.39 出现的 copy 队列溢出的问题

在高并发 (40k~60k) rps 的情况下,github.com/segmentio/kafka-go v0.4.39 该库频繁出现 panic: runtime error: slice bounds out of range [:4636] with capacity 4096 gorout ......
队列 segmentio kafka-go github 问题

Module not found: Error: Can't resolve ' vue-resource'

问题: 在学习vue的过程中出现了这个问题,说明VueResource模块没有安装。 解决方法: 打开终端,进入当前项目所在目录,输入指令 npm install vue-resource --save 然后等待安装,安装好了以后在main.js中引用(下图红色框中代码) ......
vue-resource 39 resource resolve Module

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

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

Vue3 vite:is a JavaScript file. Did you mean to enable the 'allowJs' option?

描述 今天在vue3+vite下进行打包时,突然vscode报了一个error。 大概的意识是询问是否启用“allowJS”选项,因为该文件在程序内是指定用于编译的根文件。 提示信息已经很明确了,下面从网上摘抄了下什么是 allowJS 选项。 allowJs是1.8中新提供的选项。TypeScri ......
JavaScript allowJs enable option Vue3

Cross-thread operation not valid: Control 'txtMessage' accessed from a thread other than the thread it was created on.

Winform TextBox Cross-thread operation not valid: Control 'txtMessage' accessed from a thread other than the thread it was created on. (330条消息) 解决Cros ......

node启动报错:'NODE_OPTIONS' 不是内部或外部命令,也不是可运行的程序

**问题:** ![](https://img2023.cnblogs.com/blog/1520012/202306/1520012-20230630084309020-2107349950.png) **解决:** `npm install -g win-node-env` ![](https: ......
NODE_OPTIONS 命令 OPTIONS 程序 node

goland Cannot resolve import 'google/api/annotations.proto'

# 前言 `kratos` 项目出现 `import` 标红,但是 `$GOPATH/src/google/api/annotations.proto` 已经存在了。 ![](https://img2023.cnblogs.com/blog/1303876/202303/1303876-202303 ......
annotations resolve goland Cannot import

Python报错 | PermissionError: [Errno 13] Permission denied: 'xxx'

#### 报错信息 使用python对模型进行输出文件的过程中,报如下错误: ```python PermissionError: [Errno 13] Permission denied: 'xxx' ``` #### 错误原因 报错翻译过来是: ```python 权限错误:[errno 13] ......

Python报错 | AttributeError: module 'tensorflow._api.v2.data' has no attribute 'AUTOTUNE'

#### 报错信息 ```python AttributeError: module 'tensorflow._api.v2.data' has no attribute 'AUTOTUNE' ``` #### 解决办法 ```python pip install -i https://pypi.d ......

npm install报gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.没有python环境

1 gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. 2 gyp ERR! stack at PythonFinder.failNoPython (/Us ......
python quot executable variable install

pyhton 转义字符 打印 I'm OK

print('I\'m ok') 第二种 print(r"I'm ok") ......
转义 字符 pyhton 39 OK

java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '}' at line 1

# 问题 报错代码 ``` org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.sql.SQLSyntaxErrorException: You have an err ......

appium报错AttributeError: 'WebDriver' object has no attribute 'find_element_by_id'解决方法

解决方法: from appium.webdriver.common.appiumby import AppiumBy # 导入AppiumBy search = driver.find_element(AppiumBy.ID,"com.android.settings:id/search") # ......

[LeetCode] 1493. Longest Subarray of 1's After Deleting One Element

Given a binary array nums, you should delete one element from it. Return the size of the longest non-empty subarray containing only 1's in the resulti ......
LeetCode Deleting Subarray Element Longest