Attempt to perform operation on an invalid operand
来源:互联网 发布:2004nba总决赛数据 编辑:程序博客网 时间:2024/05/22 13:50
今天在做麻将补花的时候,将花飞出去,然后补一张新牌。但是考虑到牌的顺序会乱,所以就用了table.sort想将牌顺序重新从小到达排列,可是想像总是好的,结果却出乎意料之外,在控制台看到了输入如下英文:
Attempt to perform operation on an invalid operand
刚开始看不懂,便开始百度其意思,百度翻译如下:
刚开始想不明白是哪里出错了,后来将此时牌的table 用dump(table )出来后,发现里面全部是一个userdata,因此总结如下:
table.sort不能将一个userdata的表进行排序,并且只能排序纯数字的表。
1 0
- Attempt to perform operation on an invalid operand
- Call to publish() on an invalid Publisher
- ORA-14452: attempt to create, alter or drop an index on temporary table already in use
- ORA-14452: attempt to create, alter or drop an index on temporary table already in use
- 关于appium+python TouchAction提示错误:The coordinates provided to an interactions operation are invalid
- qAdmin cannot perform this operation on a closed dataset
- Couldn't perform the operation prepareStatement: You can't perform any operations on this connection
- Couldn't perform the operation setAutoCommit: You can't perform any operations on this connection. I
- 解决linux挂载U盘时:Not authorized to perform operation
- Unable to install Maven on Windows: “JAVA_HOME is set to an invalid directory”
- invalid 'in' operand a
- An attempt to attach an auto-named database for file
- 在回调函数中发布消息:Call to publish() on an invalid Publisher
- LoadLibrary 失败 0x000001e7 Attempt to access invalid address
- CareerCup perform increment operation on ai = ai+1 and decrements operation on aj = aj - 1
- Couldn't perform the operation rollback: You can't perform any operations on this connection. It has
- android SQLiteDatabase attempt to re-open an already-closed object:
- IllegalStateException: attempt to re-open an already-closed object 错误
- 使用Java 随机读写文件RandomAccessFile类和String类遇到的问题
- 11. Container With Most Water
- MultiAutoCompleteTextView
- Android基础:Android 按2次back键程序才退出
- Python的排序:关于sort()与sorted()
- Attempt to perform operation on an invalid operand
- crtmpserver的一个bug
- StringToBuffer
- 72. Edit Distance
- VirtualBox虚拟机编译高版本内核问题
- Flask Requests & 人人网Session
- 轻松玩转Github
- 《笨办法学Python》 第17课手记
- Java 开源软件测试工具