Python运行后,报错:SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape 原因:window 读取文件可以用\,但是在 ...
分类:
编程语言 时间:
2018-10-05 01:01:06
阅读次数:
347
logstash-01.conf input { beats { port => 5044 host => "0.0.0.0" type => "logs" codec => "json" } } filter{ if ( [type] == "nginx-access" ) { grok { ma ...
分类:
其他好文 时间:
2018-10-01 21:36:48
阅读次数:
418
常规文本书写 "Markdown" "GitBook Brief Tutorial" "Plugins of Gitbook" 特殊符号书写 "LaTex" "LaTex Symbols" "LaTex常见公式环境与对齐方式小节" "Codecogs" 流程图书写 "UML Samples" not ...
分类:
其他好文 时间:
2018-10-01 15:35:15
阅读次数:
228
python读取文件时提示:UnicodeDecodeError:‘gbk‘codeccan‘tdecodebyte0xaainposition82:illegalmultibytesequence解决办法:例如,错误代码是:f=open(file_new,‘r‘)改为如下:f=open(file_new,‘r‘,encoding=‘UTF-8‘)这样执行python就不会
分类:
编程语言 时间:
2018-09-28 12:53:33
阅读次数:
213
题目大意:给你两个串,一长一短,如果长串中某个子串和短串完全相同,则这个子串可以被替换成"#",求长串所有的表达形式....... 比如"hehehehe"和"hehe",则有5种情况,"#hehe","he#he","hehe#","##","hehehehe" 首先我们KMP/哈希找出长串中所有 ...
分类:
其他好文 时间:
2018-09-24 23:20:55
阅读次数:
148
//js引用部分<script src="../qrcode.js" type="text/javascript"></script>//body部分 <div class="qrcode-canvas" style="display: none;"></div><div class="qrcode ...
分类:
Web程序 时间:
2018-09-21 13:35:18
阅读次数:
249
异常:'latin-1' codec can't encode characters in position 62-66: ordinal not in range(256) 用Python通过pymysql往MySQL数据库中插入数据时,插入的字段含有中文,出现异常: 'latin-1' code ...
分类:
数据库 时间:
2018-09-20 21:25:43
阅读次数:
192
处理常用的编码方法的工具类包 例如DES、SHA1、MD5、Base64等. 导入包: ...
分类:
Web程序 时间:
2018-09-19 19:51:14
阅读次数:
282
读取文件时碰到问题: 1.(unicode error) 'unicodeescape' codec can't decode bytes in position 16-17: truncated \uXXXX escape 在stackoverflow上找到了答案,就是将在路径字符串前加 r : ...
分类:
其他好文 时间:
2018-09-17 19:43:36
阅读次数:
2788
收集Android开发用得上的资源,方便查询 像大牛一样写代码: 31个Android 开发者工具 Android 流行框架查速表 数据结构和算法练习awesome-java-leetcode Android开发规范 免混淆库FreeProGuard Android 开发人员不得不收集的代码 ...
分类:
移动开发 时间:
2018-09-16 21:34:47
阅读次数:
225