Illegal character

openpyxl.utils.exceptions.IllegalCharacterError报错有效解决方案 在使用openxyl写入excel的时候,可能会出现openpyxl.utils.exceptions.IllegalCharacterError的提示错误 。根据提示可以知道是openpyxl模块中的错误。 解决方案: 进入报错路径,查看cell.py文件,找到报错位置 def check_string(self, value): """Check string coding, length, and line break character""" if valu. 阅读详情

这里写图片描述

错误分析:

Illegal character,非法字符。从红色波浪线可以看出,括号是中文的,不是英文括号。所以编译器认为是非法的。

解决:

修改括号为英文括号

总结:

Illegal character 一般情况是中英文导致的。多次出现在括号,逗号,问号等等相关符号上。

Java编译错误“非法符号“?90%是这3种标点问题 Java开发中常见的"非法符号"编译错误90%由三类标点问题引起:不可见空白字符(占63%)、转义字符滥用(28%)和符号编码冲突(9%)。文章详细分析了零宽空格、BOM头、非断空格等隐形字符问题,提供了可视化检测工具和修复方案;针对转义字符错误给出了三种正确写法;并解决了中文标点、智能引号等编码问题。通过统一编码标准、CI/CD集成检测和IDE插件配置等预防措施,可有效减少73%的编译错误。建议开发者建立标点符号标准化规范,避免从非代码编辑器复制内容。 阅读详情

相关推荐

【IDEA】IDEA报错 illegal character U+00A0异常解决

1. 解决方案 原因是你拷贝的的代码,空格跟空格也是不一样的,分类如下 \u00A0:不间断空格,主要用在office中,让一个单词在结尾处不会换行显示 \u0020:半角空格(英文符号),代码中常用的 \u3000:全角空格(中文符号),中文文章中使用 因此我们这里的解决就是将这些空格替换,首先选中单个报红的空格(我们无法看出分别,但编辑器可以),Ctrl+R 进行全局替换正常代码用的空格即...

九师兄 9459

elcipse:提示报错:“illegal character”。

问:elcipse:提示报错:“illegal character”。 答: 1、编辑器会报出“illegal character(非法字符)”错误信息,有可能是程序代码中的分号必须为英文状态下输入的,可能会将英文状态下的";"写成中文状态下的“;”。 ...

cows_boy的博客 4895

Caused by: java.lang.IllegalArgumentException: Illegal base64 character 2d

springboot+ES时报错

知识改变命运,ヾ(◍°∇°◍)ノ゙【求关注】 5937

【随手查】Verilog编译报错

的一些报错记录,方便日后查找,持续更。。。

Jessaly的博客 1万+

网络摄像头(IPC)介绍:类型、供电、镜头、夜视等

IPC(Internet Protocol Camera,网络摄像头),它是一种由传统摄像机与网络技术结合所产生的新一代摄像机。它可以将视频、音频、报警及控制信号通过网络传输,接受网络监控主机(NVR或监控管理平台)的管理。IPC可与路由器、交换机、NVR等设备组建成为监控系统。

学无止境,Fighting! 1万+

基于Ardupilot/PX4固件,APM/PIXhawk硬件的VTOL垂直起降固定翼软硬件参数调试(第一篇)安装调试

基于Ardupilot/PX4固件,APM/PIXhawk硬件的VTOL垂直起降固定翼调试 本文内容大部分来自Kris,我们的K大,在VTOL领域的大牛,在此,非常感谢K大。能引用K大的成果也是自己的荣幸,不便之处还请K大多多包涵,在此引用只是为方便自己日常学习,部分参数表里根据自身情况,增加了相应参数。 1.安装及下载Ardupilot官方固件: VTOL固件的来源可分为Ardupilot官方固...

u011322358的博客 3万+

Illegal character in hostname

请求jsp界面,正常;在进行spring mvc请求时候,报错 Illegal character in hostname 具体环境说明: nginx请求转发,将请求转给tomcat。spring mvc的结构java web项目。 原因: #默认请求设置 location / { proxy_pass http://tomcat_pool; #转向tomcat处理 }...

yangyangrenren的专栏 1225

告别眼疲劳!保姆级教程:给你的SecureCRT v8.7.2换上护眼高亮配色(附透明背景设置)

本文提供了一份详细的SecureCRT v8.7.2护眼高亮配色方案教程,帮助程序员缓解眼疲劳问题。通过科学调整配色方案、动态环境自适应设置以及字体渲染优化,显著提升终端使用的舒适度和工作效率。特别推荐Solarized Dark和One Dark Pro医学适配版配色方案,适合长时间编码工作。

weixin_42549496的博客 353

Base64 Illegal base64 character 5f, Illegal base64 character 2d and java.util.Base64 报错解决

最近写了个aes加解密 加密是没有多大问题,但是问题就是在于解密, 可能大家的报错情况都不太一样,我这里的报错原因是因加密的时候 我使用的是 Base64.getUrlDecoder().decode(sSrc) 这里注意一下用的是getUrlDecoder 导致返回密文 String originalString = new String(original, StandardChar...

Destiny的博客 1万+

S32K344 Bootloader实战:一个按键实现从Boot到App的无缝跳转(附完整代码)

本文详细介绍了基于NXP S32K344微控制器的Bootloader开发实战,重点解析如何通过一个硬件按键实现从Boot到App的可靠跳转。内容涵盖内存分区规划、中断向量表重映射、外设初始状态管理等核心要素,并提供了完整的代码示例和调试技巧,适用于汽车电子和工业控制等高可靠性应用场景。

weixin_29192365的博客 307

JHU ICBM DTI Atlas纤维束模板介绍

JHU ICBM DTI atlas 纤维束的定位与功能介绍

machinelearning_er的博客 6421

异常 illegal character 200B

在复制别人的代码的时候,因为会出现这个问题, 明明代码上面没有错误却需要,在代码中报错 illegal character 200B,应该是字符编码的问题。 我用的ide是idea 只需要把字符的类型改一下就是可以了。 先把字符类型换成iso,发现多了一个问好 。然后在换成utf-8就可以了 ...

weixin_43889681的博客 1650

【stata基础代码大全 】 可独立完成一篇实证

用stata打开,直接替换自己需要的变量就行,小白友好❗️❗️❗️。八、八.中介效应检验:路径分析(三种方法)第二种方法即Sobel-Goodman检验。*(7)Winsor处理,剔除异常值。六、内生性问题解决方法(附具体模型)其三,工具变量:两阶段最小二乘。第三种方法即Bootstrap检验。二、Stata中数据的基本处理。*(5)生成行业、年度虚拟变量。PSM1————近邻匹配。七、调节效应检验:机制分析。*(2)剔除数据中的样本。*(4)给变量添加标签。*(3)生成新的变量。*(6)基本数据匹配。

J_Giser的博客 8023

Java 编译报错:illegal character

Java 编译报错:illegal character 1、检查编译版本:1.5还是1.6 2、重新引用一下Jar包 posted on 2014-09...

weixin_30628801的博客 503

OTG原理讲解

摘要:USB OTG(On-The-Go)是USB 2.0的重要功能,允许设备在主机和从机间动态切换,实现设备间的直接通信。其核心机制是通过ID引脚电平判断角色:Micro-USB中接地为Host,悬空为Device;USB-C则通过CC引脚协商。电路设计需处理ID引脚连接和VBUS电源控制,MCU根据ID状态配置USB控制器模式。典型应用包括手机连接U盘、键盘等外设,极大扩展了移动设备的连接能力。

m0_49476241的博客 3217

2023年高教社杯全国大学生数学建模竞赛 E 题:《黄河水沙监测数据分析》真题解析与 MATLAB 解决方案

🏆 本文已收录于专栏:《滚雪球学数学建模(含历年真题)》,持续更新最新及历年数学建模竞赛资料,每篇内容力求做到“问题讲透、模型讲清、代码可用、论文可参考”,帮助你从零开始逐步建立完整的数学建模知识体系。

**My Coding Family** 903

illegal character: \65279

异常描述 [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /root/.jenkins/jobs/test_jr/workspace/src/com/activity/util/MD5Util.java:[1,1] illegal

走在命运的左岸 1007

假人有限元模型

假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

Illegal escape character in string literal

使用spring MVC模式编写action时候,出现 Illegal escape character in string literal 错误,经查是由于使用了 “\” 作为路径分隔符,如 "Index\index" ,这个斜杠用的时候需要在前面再加一个 \ 转义,并且这个分隔符只对windows系统有用,局限性比较严重。推荐使用 “/” 作为分隔符或者File.separator,最好不要使...

XIAO_YAO_YOU_0的专栏 1万+

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

Base64异常Illegal base64 character 20

用 byte[] base64decodedBytes = Base64.getDecoder().decode(sss); 处理其他系统传过来的base64加密字符串报异常:Base64异常Illegal base64 character 20。 转换之后再做处理:String ss = sss.replaceAll(" +","+"); 就可以了。 ...

juane的专栏 3808

Base64解码时Illegal base64 character 20问题解决

其实可以看到前面我们已经做了一些替换工作,去掉多余的换行符,去掉前面的"-----BEGIN PUBLIC KEY-----",去掉后面的"-----END PUBLIC KEY-----"。一般情况下其实已经够了,不会有多余的空格。但是,如果使用Apollo或者Nacos的时候,注入到Spring容器之后的这个字符串,可能还会多一些多余的空格,需要替换掉。问题原因是待解码的字符串(publicKeyString)中包含了多余的空格字符,需要替换掉。加上.replaceAll(" ","")

东皋长歌的专栏 2563

Illegal character in path at index

http请求的url内含非法字符 这次是因为url中含有了双引号 参考文档 Illegal characters in path 非法字符报错问题 Illegal character in path at index

shiwei77的博客 1万+

【报错】Illegal character: U+ 200B

代码中无明显错误,但是一直报错:Illegal character: U+ 200B 解决方法: 将编码换为iso,会看到报错的代码后面多了一个?,删去这个多余的?,再将编码切回utf-8 ...

islizi的博客 1518

解决firebug报“illegal character"错误的问题

项目中的一个js文件在firefox中总报“illegal character"错误,而且firebug中显示js文件的首字符有乱码。 用notepad2打开js文件查看编码,当前是UTF-8(含bom),更改为UTF-8 后运行正常。 转载于:https://www.cnblogs.com/vento/archive/2009/06/02/1494384.html...

weixin_30445169的博客 414

SyntaxError: illegal character 或者 Uncaught SyntaxError: missing ) after argument list

firefox下报这样的错误(精确): SyntaxError: illegal character 360下报这样的错误(不精确): Uncaught SyntaxError: missing ) after argument list 相关: 出现SyntaxError: missing这种错误大部分时候是因为特殊字符造成的(如字符为全角的),有可能也是缺逗号,}之类造成的英文状态下(

hello,today! 5715

error error: illegal character: '\u3000'

写leetcode 一直是error: illegal character: '\u3000' '\u3000' 我就奇怪这到底是个啥! 中文(全角)空格!!!什么鬼口亨 转载于:https://www.cnblogs.com/Cherrylalala/p/6705852.html...

aa1083663346的博客 1992

Error: illegal character: '\u200b'编译错误解决方法

Error: illegal character: ‘\u200b’ 编译错误如下 错误原因 此类错误关注这个错误的字符——’\u200b’ '\u200b’表示为zero-width-space,以Unicode编码。因此,你使用的Editor对文件(源文件)的编码方式是UTF-8。 在我使用过程中,我遇到这类错误发生的情况有: 在两个UTF-8源文件之间copy,之后进行编译 一个UTF-...

流年梦呓语的博客 7965
上一篇: IntelliJ IDEA Debug调试用法一
下一篇: Whitelabel Error Page(1)之 Not Found
脾气很倔呢
博客等级 码龄9年 190粉丝 309原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值