
程序bug
vs974532452
这个作者很懒,什么都没留下…
展开
-
python报错AttributeError: 'NoneType' object has no attribute 'group'和正则匹配整数和小数
1.re.search(r’\d+(.\d+)?’,s).group()里面的正则表达式匹配整数和小数,(.\d+)?判断有无小数,有则匹配,没有则只匹配整数2.今天在写一个找出寻找文本(用C语言打印的内容输出到txt)里的变量的最大最小值的小脚本时,遇到传入si,sj两个字符以上的变量不会报错,但传入一个字符的变量就会报错,如下图:改代码(在判断条件变量后增加‘=’)如下图后不报错:...原创 2019-03-13 21:01:19 · 13329 阅读 · 1 评论 -
安装z3-solver(python库)失败z3.z3types.Z3Exception: libz3.dll not found.
安装z3-solver报错Could not find libz3.dll; consider adding the directory containing it to - your system's PATH environment variable, - the Z3_LIBRARY_PATH environment variable, or - to the custom Z...原创 2019-07-19 08:29:40 · 2686 阅读 · 1 评论