ES6赋值语句 不佳的写法 (写法上啰嗦了一些) let count = 5 let color = "blue" let values = [1,2,3] let now = new Date() 改进如下:↓ let [count, color, values, now] = [5, 'blue ...
分类:
编程语言 时间:
2020-04-19 13:12:29
阅读次数:
90
在发送微信客服消息初始使用的是 设置 或者是 都报 invalid openid hint 错误 后来发现 是 未使用 ,改正后但是发送的消息还是中文乱码,这就很蛋疼了 鄙人才疏学浅,经过不断的肝,发现一个好用的类,使用 完美解决 invalid openid hint 报错以及中文乱码问题 所以说 ...
分类:
微信 时间:
2020-04-19 10:51:46
阅读次数:
98
使用正则匹配时,虽然正则没报错,但发出了一个警告: 根据这篇文章《Python正则表达式报错:invalid escape sequence '\d' (无效的转义字符'\d')》,原因是Python3将字符串解释为Unicode字符串,因为正则中的\D或者\*就被视为转义的Unicode字符,解决 ...
分类:
其他好文 时间:
2020-04-18 14:11:59
阅读次数:
711
No such file or directory: /root/ankobot_catkin_ws/src/turtlebot3/turtlebot3_description/urdf/turtlebot3_.urdf.xacro None None
Invalid <param> tag: Cannot load command parameter [robot_description]: command [/opt/ros/kinetic/lib/xacro/xacro --inorder /root/ankobot_catkin_ws/src/turtlebot3/turtlebot3_description/urdf/turtlebot3_.urdf.xacro] returned with code [2].
分类:
其他好文 时间:
2020-04-16 18:08:29
阅读次数:
103
错误 不符合语法规范,如 invalid syntax 异常 定义:语法正确,但在执行过程中遇到错误,如 ZeroDivisionError:除数为0 NameError:未定义的变量名 TypeError:类型错误 KeyError:字典中的键找不到 FileNotFindError:发送了读取请 ...
分类:
编程语言 时间:
2020-04-14 20:54:39
阅读次数:
72
安装某个库的时候依赖于redis库,总是出现这样的错误: 猜测是redis库装错了,于是删除 C:\Users\ahfuzhang\go\src\github.com\go redis,然后删除:C:\Users\ahfuzhang\go\pkg\mod\cache目录下所有文件。 尝试单独安装re ...
分类:
其他好文 时间:
2020-04-14 20:50:34
阅读次数:
249
1 #region 获取内、外网Ip 2 3 /// <summary> 4 /// 获取本地ip地址,优先取内网ip 5 /// </summary> 6 public static String GetLocalIp() 7 { 8 String[] Ips = GetLocalIpAddres ...
https://blog.csdn.net/m0_37668842/article/details/89138733 https://www.cnblogs.com/jamesvoid/p/11297843.html https://blog.csdn.net/qq_32331073/article ...
分类:
Web程序 时间:
2020-04-14 00:34:59
阅读次数:
90
#Region "过滤sql语句" Public Shared Function denny(ByVal id) As String id = Replace(id, "'", "") id = Replace(id, " and ", "") id = Replace(id, "select ", ...
分类:
数据库 时间:
2020-04-13 15:22:32
阅读次数:
88
using System; using System.Text; using System.Text.RegularExpressions; namespace Utilities { /// /// 共用工具类 /// public static class Tools { region 得到字符 ...