风花雪月 风花雪月
4年前
报错'gb2312' codec can't decode byte 0x9e in position 4100: illegal multibyte sequence,“gb2312”编解码器无法解码位置4100中的字节0x9e:非法的多字节序列
“gb2312”编解码器无法解码位置4100中的字节0x9e:非法的多字节序列。处理方式:withopen(path,encoding"utf8",errors'ignore')asf:使用errors'ignore'去掉(忽略)字符并返回不带字符的字符串。
CuterCorley CuterCorley
4年前
C语言基础习题50例(六)26-30
习题26利用递归方法求5。实现思路:使用递归。代码如下:cinclude<stdio.hintmain(){intrec(intn);intresultrec(5);printf("5%d\n",result);return0;}intrec(intn){if(n1||n
虾米大王 虾米大王
3年前
java代码077
code077.jspAddBook0)out.println("成功添加了"row"条数据");param.close();conn.close();catch(Exceptione)out.println("图书信息添加失败");e.printStackTrace();%返回
Wesley13 Wesley13
3年前
Oracle数据库提权(dba权限执行系统命令)
0x01提权准备这里我们先创建一个低权限的用户testSQLconnsys/admin123@orclassysdba;已连接。SQLcreateusertestidentifiedbytest;然后查看一下权限SQLselectfrom
Wesley13 Wesley13
3年前
Java中Class对象详解
<divclass"htmledit\_views"id"content\_views"<phttps://blog.csdn.net/mcryeasy/article/details/52344729<br</p<p待优化整理总结</p<p</p<h1style"padding:0px;fontfamily:'apple
Stella981 Stella981
3年前
Retrofit里面Gson解析日期出错
今天解析json数据的时候出错了。Invalidtimezoneindicator'6'(atoffset0)也配置了Gson的setDateFormat格式,然而并没有用最后还是加了registerTypeAdapter,这下通用了privatestaticfinalGsongsonnewGsonBuild
Wesley13 Wesley13
3年前
ORDER BY优化(MySQL高级知识八)
前言:在使用orderby时,经常出现Usingfilesort,因此对于此类sql语句需尽力优化,使其尽量使用Usingindex。0.准备1.创建test表。droptableifexiststest;createtabletest(idintprimarykeyauto\_increme
Stella981 Stella981
3年前
SpringBoot应用部署于外置Tomcat容器
!Desktop(https://uploadimages.jianshu.io/upload_images/9824247cf33cdd281791244.jpg?imageMogr2/autoorient/strip%7CimageView2/2/w/1240)0x01.概述SpringB
Stella981 Stella981
3年前
Cordova Embedded Server
20180724!clipboard1(https://userimages.githubusercontent.com/5669954/431766745cb000868ff711e89e157a388c0de40e.png)!clipboard2(https://userimages.github
Stella981 Stella981
3年前
Python之format详解
1.通过位置'a1{}a2{}a3{}'.format('first','second','third'){}不带参数'a1firsta2seconda3third''a1{1}a2{0}a3{2}'.format('first'