风花雪月 风花雪月
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'去掉(忽略)字符并返回不带字符的字符串。
Stella981 Stella981
3年前
H5 App实现热更新,不需要重新安装app
直接上代码吧,你竟然搜到了我的文章就应该知道了,为什么要热更新//app热更新下载//假定字符串的每节数都在5位以下functiontoNum(a){//也可以这样写varca.split(/\./);varca.split('.');varnum_place""
Easter79 Easter79
3年前
SpringMVC【开发Controller】详解
前言本文主要是讲解在Controller中的开发,主要的知识点有如下:编码过滤器使用注解开发注解@RequestMapping详解业务方法接收参数字符串转日期重定向和转发返回JSONSpringMVC过滤编码器在SpringMVC的控制
Stella981 Stella981
3年前
Centos7 下安装python3及卸载
一、安装python31、安装依赖包yuminstallzlibdevelbzip2developenssldevelncursesdevelsqlitedevelreadlinedeveltkdevelgcc\makey!在这里插入图片描述(https://oscimg.osch
Wesley13 Wesley13
3年前
uboot自定义添加命令
1、添加命令  1.uboot的命令格式:  U\_BOOT\_CMD(name,maxargs,repeatable,command,”usage”,"help")  name:命令的名字,不是一个字符串;  maxargs:最大的参数个数;  repeatable:命令是可重复的;  command:对应的函数指针  2.在
Stella981 Stella981
3年前
Python技巧之使用contextlib.suppress压制指定异常
Python3.4允许你使用contextlib.suppress()实现选择性忽略特定异常。InPython3.4youcanusecontextlib.suppress()toselectivelyignorespecificexceptions:importcon
Wesley13 Wesley13
3年前
.net core redis的全套操作
原文:.netcoreredis的全套操作(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.cnblogs.com%2Fhailang8%2Fp%2F11391975.html)Redis支持五种数据类型:string(字符串),hash(哈希),list(列表),se
Wesley13 Wesley13
3年前
PHP 随机数 C扩展随机数
由于要用到固定长度的随机字符串。首先是一段PHP代码        $str_md5md5(uniqid());$rand  mt_rand(1, 28);$str1substr($str_md5,$rand,6);$rand  mt_rand(1, 28);$str2substr($
小万哥 小万哥
1年前
Python - 字典3
修改字典项您可以通过引用其键名来更改特定项的值:示例,将"year"更改为2018:pythonthisdict"brand":"Ford","model":"Mustang","year":1964thisdict,,,,,,,,,看完如果觉得有帮助,欢