开发的时候 遇到 java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0 这个异常有时候会有,有时候正常 不太好捕捉 猜测 已经把数据给了list,然后让主线程去显示:接着后台继续获取数据.那也许有可能主线程还是没刷新完,后台又把新数据给过来了 所以 猜测 是刷新头部出现的问题 也就是 news.clear(); news.addAll(0, refreshNewData); newsAdapter.notifyDataSe…
[2016-10-11 14:16:42,191][DEBUG][action.admin.indices.create] [Feron] [2Shard] f ailed to create [2Shard] InvalidIndexNameException[Invalid index name [2Shard], must be lowercase] at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService.valid…
0.设置自己的host文件,将127.0.0.1指向自己想要访问的域名 127.0.0.1 www.yours.com 1.MAC设置应用在127.0.0.1:80端口访问: config/index.js目录下修改host和port 然后sudo运行npm run dev:(mac的80端口是被自身分享应用占用的,使用的话需要root权限) sudo npm run dev 运行完后,在127.0.0.1:80下能访问应用了.但是,在www.yours.com下,页面上会出现"Invalid…
今天第一次发随笔还有许多不足之处,欢迎评论!!! 最近在写一个成语接龙的小游戏,结果在数组添加元素时报错:IndexError: list index out of range 源码: import pypinyin robot=[""] #机器回答的成语列表(先不加成语) robotpy1=[] #机器回答成语列表的所有成语的第一个拼音 for k in robot:#便利 robotpy1.append(pypinyin.pinyin(k, style=pypinyin.NORMA…
用python写脚本查询字典时,在遍历字典时循环到某一项时老是报错   出现这种错误有两种情况: 第1种可能情况 list[index]index超出范围 第2种可能情况 list是空值就会出现 IndexError: list index out of range 第二种情况尤为难以排除错误…
今天写个ping vpn的python脚本,报错IndexError: list index out of range 最后查看是python读取文件中出现空格 去掉空格即可…
pyinstaller将py打包为exe文件,用pysintaller居然报错 File "c:\anaconda3\lib\site-packages\PyInstaller\depend\utils.py", line 226, in __scan_code_instruction_for_ctypes name = co.co_names[oparg] IndexError: tuple index out of range 1 2 3 搜索了一番,用群众神奇的方式 找到D:\p…
关于xxx.so,今天在安装php的模块时候老是报,xxx.so的问题,虽然不影响使用,但作为一名当年的程序员强迫症患者,誓死要把 他搞清楚,后面发现是删除了也没有影响,因为在安装php的时候已经将他们编译进去了,不用重复添加这些模块了, 不信你删除警告的模块,然后执行php -m,看看,肯定有这些模块. PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'ctype.so' in Unknown on lin…
IndexError:string index out of range 出现在下标越界的情况,如 item[1],可能为空的时候下标就会越界…
最后Stackoverflow上面的大神解决了问题: Link brew install mysql brew unlink mysql brew install mysql-connector-c sed -i -e 's/libs="$libs -l "/libs="$libs -lmysqlclient -lssl -lcrypto"/g' /usr/local/bin/mysql_config pip install MySQL-python brew un…