39 default sqlexception field

Argument for '--moduleResolution' option must be: 'node', Unknown compiler option 'verbatimModuleSyntax'.

node_modules/@vue/tsconfig/tsconfig.json(12,25): error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenex ......

King's Tour 题解

King's Tour 题面大意 在 \(n\times m\) 的网格中构造一种从 \((1,1)\) 走到 \((a,b)\) 的方案,要求经过所有格子恰好一次,格子之间八联通。 思路分析 模拟赛题,赛时写了一个半小时过了( 思路不是很复杂,但是需要一些分类讨论。 引理:对于任意大小的矩形,一定 ......
题解 King Tour 39

leaflet使用heatmap.js出现heatmap.js:527 Uncaught TypeError: Cannot assign to read only property 'data' of object '#<ImageData>'问题

一、问题背景 问题是这样发生的,因为项目中需要实现热力图的功能,所以使用了第三方的库 heatmap.js。 但是在一些浏览器中使用它时,会出现这个错误: > Uncaught TypeError: Cannot assign to read only property 'data' of obje ......
heatmap 39 TypeError ImageData Uncaught

'org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity' is deprecated

@EnableGlobalMethodSecurity(prePostEnabled = true) 已经被弃用了,最新的是:@EnableMethodSecurity。 file:[SecurityConfig.java] @Configuration @EnableWebSecurity add ......

Windows宝塔面板出错了,面板运行时发生错误! KeyError: 'list

先说办法就是回退,无论是Linux还是win这里就说win的办法1、先停止面板2、直接下载:https://dg2.bt.cn/win/panel/panel_7.7.0.zip3、解压4、覆盖panel5、启动解决 转自:【新提醒】【已完成】出错了,面板运行时发生错误! KeyError: 'li ......
面板 宝塔 KeyError 错误 Windows

[Err] 1292 - Truncated incorrect DOUBLE value: ''

执行的语句[SQL] insert into `hxl_hospital_info` ( `id` , `latitude` , `longitude` , `deleted` , `create_time` , `update_time`)select `id` , `latitude` , `l ......
Truncated incorrect DOUBLE value 1292

Backtrader - AttributeError: 'OptReturn' object has no attribute 'datas'

1.0 Error Traceback (most recent call last): File "D:/PycharmProjects/dbpower.backtrader.001/app/main_machine_learning.py", line 191, in <module> img ......

import, export,export default,exports - 导入导出方法总结

1.Export 注意:在一个模块中,export 可以向外暴露多个 注意;使用export导出的成员,必须严格按照导出时候的名称,不能自定义,来使用 {} 按需接收 注意;使用export导出的成员,如果要换个名称,可以使用 as 起别名 模块是独立的文件,该文件内部的所有的变量外部都无法获取。如 ......
export default exports 方法 import

VScode使用MySQL插件老是Connect timeout,右下角还出现Cannot read properties of null (reading 'getPassword') error in vs code问题

安装了MySQL插件,一开始还用的好好的结果第二天就不行了真是鬼火直冒。 首先关闭vscode里面的自动更新:setting,搜索update,然后关闭application里面的自动更新; 我现在的版本是1.83.1,我在https://code.visualstudio.com/updates/ ......
getPassword properties 插件 老是 Connect

Codeforces Round 697 (Div. 3) B. New Year's Number

给出一个数 \(n\) ,询问能否存在 \(2020x + 2021y = n\) 。 对于方程 \(ax + by = n\) 可以直接解 \(exgcd\) 查询是否有解。 观察到 \(2020x + 2021y = n\) 可以化为 \(2020(x + y) + y = n\) 。不妨定为 ......
Codeforces Number Round Year 697

struct.error: 'H' format requires 0 <= number <= 65535

全部代码如下: from pymodbus.client import ModbusTcpClient # 避坑:write_registers和write_register函数差一个s。多一个s的参数用整型列表,没有的只能用整型 def split_float_to_integer_and_fra ......
requires struct format number error

It's likely that neither a Result Type nor a Result Map was specified.

It's likely that neither a Result Type nor a Result Map was specified. 很可能既没有指定结果类型也没有指定结果映射。 出现问题的代码: 本段代码功能是查询一张表的全部 点击查看代码 <mapper namespace="com.d ......
Result specified neither likely Type

python pyautogui AttributeError: module 'pyscreeze' has no attribute 'locateOnWindow'

目录python pyautogui AttributeError: module 'pyscreeze' has no attribute 'locateOnWindow' python pyautogui AttributeError: module 'pyscreeze' has no att ......

在'for'循环中访问索引

内容来自 DOC https://q.houxu6.top/?s=在'for'循环中访问索引 在for循环中遍历序列时如何访问索引? xs = [8, 23, 45] for index, x in enumerate(xs): print("item #{} = {}".format(index, ......
索引 39 for

Python word'str'(字符串前缀string prefix)的种类

Python 字符串前缀(String prefix) r 'string' r' ',用法是不会对后方字符串中的转义符进行转义,如: str = r'\n' print(str) # 会直接输出\n,并不会输出换行 f 'string' f ' ',用法是对字符进行格式化就和str.format( ......
前缀 字符串 字符 种类 Python

ImportError: cannot import name 'parse_xml' from 'docx.oxml'

问题解决: 查看每一个报错的文件,比如__init__.py, composer.py 找到报错的这一行, 比如: from docx.oxml import parse_xml 替换为: from docx.oxml.parser import parse_xml 注意:可能有多个文件出现这个问题 ......
39 ImportError parse_xml cannot import

问题记录贴:vue-i18n在弹出框中$t()报错:TypeError: Cannot read property '_t' of undefined

网上有用的解决方法:vue 国际化在弹出框中$t()报错:TypeError: Cannot read property '_t' of undefined 大佬给出的解决方法: 弹窗是一个新的Vue对象,只需要单独给弹窗重新绑定i18n即可。 代码: // dialog/main.js impor ......
TypeError undefined property Cannot 问题

使用pymysql库时出现这种情况——AttributeError: 'NoneType' object has no attribute 'encoding'

问题描述 问题解决 这里的是utf8,不是utf-8: 打印成功! ......

TypeError: 'dict' object is not callable 错误

做实例的时候报错TypeError: 'dict' object is not callable 感觉应该是因为我将实例都放在了一个程序中,在4.py上面有太多book了,在上面已经调用了 所以我放进另一个程序就可以实现了 ......
TypeError callable 错误 object 39

日期格式转换异常:Java 8 date/time type `java.time.LocalDateTime` not supported by default: add Module \"com.fasterxml.jackson.datatype:jackson-datatype-jsr310

异常信息: "unexpected error: Type definition error: [simple type, class java.time.LocalDateTime]; nested exception is com.fasterxml.jackson.databind.exc.I ......

npm install -g yarn 安装yarn之后提示:'yarn' 不是内部或外部命令,也不是可运行的程序或批处理文件。

操作系统:win10 node版本:v14.21.3 1:npm install -g yarn 2:yarn 报错:'yarn' 不是内部或外部命令,也不是可运行的程序或批处理文件。 3: yarn 安装在 C:\Program Files\nodejs\node_modules\corepack ......
yarn 命令 install 文件 程序

已解决ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'e:\\python\\scripts\\pip.exe' Consider using the `--user` option or check the permissions.

已解决ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'e:\\python\\scripts\\pip.exe' Consider using the `--user` option or check ......
permissions the Consider WinError packages

P7782 「MCOI-Zero / AC6-M03」 Sipli Field

P7782 「MCOI-Zero / AC6-M03」 Sipli Field 更好的阅读体验 单 log 淀粉做法。 回想正常淀粉计算的是树上的路径问题,但题目中要求计算经过每个点的答案,这样我们选取重心后一棵子树对另一棵子树的答案就会少算,所以我们淀粉时不仅要算根的答案,也要考虑子树间的相互贡献 ......
MCOI-Zero P7782 AC6-M Field Sipli

SQLAlchemy学习-13.分页查询'Query' object has no attribute 'paginate'

前言 用过Flask-SQLAlchemy的应该知道, 它提供了一个分页查询方法 paginate(),方便我们实现在后端查询分页。 但是单独使用SQLAlchemy 却没有paginate方法,会报错:AttributeError: 'Query' object has no attribute ......
39 SQLAlchemy attribute paginate object

ImportError: cannot import name 'write_connection_file' from 'jupyter_client'

ImportError: cannot import name 'write_connection_file' from 'jupyter_client' (/home/software/anaconda3/envs/mydlenv/lib/python3.8/site-packages/jupyt ......

ERROR: Could not install packages due to an OSError: [Errno 2] 没有那个文件或目录: '/anaconda3/envs/mydlenv/lib/python3.8/site-packages/fastjsonschema-2.16.2.dist-info/METADATA

ERROR: Could not install packages due to an OSError: [Errno 2] 没有那个文件或目录: '/home/software/anaconda3/envs/mydlenv/lib/python3.8/site-packages/fastjsons ......

CF1835D Doctor's Brown Hypothesis

D - Doctor's Brown Hypothesis 首先,一对合法的\((x,y)\)一定是在同一个\(scc\)中的,所以我们将每个\(scc\)分开处理 若我们当前在处理某一个\(scc\),考虑给这个\(scc\)建一棵\(dfn\)树,设当前\(scc\)中的所有的环长度的\(gcd ......
Hypothesis Doctor 1835D Brown 1835

zTT@MobiSys '21

这篇工作还是做的是一个DVFS技术,来动态调整CPU/GPU的电压和频率,达到节能、控温。 1. introduction 传统的DVFS技术主要停留在操作系统内核层面,与应用程序无关。但是不同的应用的需求决定了它们的最佳的CPU,GPU的功耗分布。 一些DVFS无法摆脱过热的问题。这里举例(图1) ......
MobiSys zTT 39 21

'FancyArrow3D' object has no attribute 'do_3d_projection'问题

《程序员数学:用Python学透线性代数和微积分》第3章,源码bug修正。 错误原因: 画“三维箭头”图形的时候,系统报错“AttributeError: ‘Arrow3D’ object has no attribute ‘do_3d_projection’”。 猜测可能是matplotlib3. ......

记一次 MatPlotLib 报错及解决方案:AttributeError: module 'matplotlib.cbook' has no attribute '_Stack'

记录了最近遇到的 MatPlotLib 的 AttributeError: module 'matplotlib.cbook' has no attribute '_Stack' 问题的解决方案。 ......