码迷,mamicode.com
首页 >  
搜索关键字:typeerror    ( 1000个结果
Python Theano TypeError: Cannot convert Type TensorType(float64, vector) (of Variable Subtensor{int64:int64:}.0) into Type TensorType(float64, matrix)
参考:https://groups.google.com/forum/#!topic/theano-users/teA-07wOFpE这个问题出现的原因是,我在读文件的时候,应该Train_X读成matrix(rows * dimensions),Train_Y读成vector(因为只有label一...
分类:编程语言   时间:2014-08-02 01:32:12    阅读次数:553
cocos2d-js引擎学习笔记
Scale9Sprite在用Scale9Sprite.create的时候出现Uncaught TypeError: Cannot call method 'create' of undefined这个错误,后来发现在默认情况下,project.json里的modules只自带cocos2d模块,通过...
分类:Web程序   时间:2014-07-25 19:00:01    阅读次数:361
ECMA5.1中Object.seal()和Object.freeze()的区别
1 Object.seal(O)的调用When the seal function is called, the following steps are taken: If Type(O) is not Object throw a TypeError exception. For each nam...
分类:其他好文   时间:2014-07-21 09:03:28    阅读次数:248
MVC使用jquery模板时,使用模板页Uncaught TypeError: Object #<Object> has no method 'tmpl'
Uncaught TypeError: Object # has no method 'tmpl'这个是因为使用模板页的时候饮用时候引用的路径是错误的,所以会报错在360浏览器Uncaught TypeError: Object # has no method 'tmpl'
分类:Web程序   时间:2014-07-18 19:27:35    阅读次数:262
Python“TypeError: 'NoneType' object is not iterable"的原因
Python“TypeError: 'NoneType' object is not iterable"的原因...
分类:编程语言   时间:2014-07-18 15:14:12    阅读次数:229
TypeError: string indices must be integers, not str
1. TypeError: string indices must be integers, not str字符串类型取第index个字符的时候,应该传入int而不是str。如1a='abcdef'2printa[0]3#而不是 print a['0']更常见的情况是把一个string当成了字典在使...
分类:其他好文   时间:2014-07-03 00:36:01    阅读次数:746
Python Special Syntax 2
a=Nonefor i in a: print('zheli de i shi %d' % i)报错:TypeError: 'NoneType' object is not iterable除非你提供你自己的return语句,每个函数都在结尾暗含有return None语句。关于DocStri...
分类:编程语言   时间:2014-07-02 17:31:36    阅读次数:189
python property属性
可以检查参数,一直没注意这个语言特性,忽略了很多细节,感谢 vitrox class Person( object ): def __init__( self, name ): if not isinstance( name, str ): raise TypeError( '...' ) else:...
分类:编程语言   时间:2014-07-01 10:00:34    阅读次数:181
python in操作引发 TypeError
在看 networkx 源码的时候觉得疑惑,为什么外层 for 要注意 TypeError,里面就不用,同样是 in, 一直纠结 node 是不是有问题,比如 node 不可以被迭代什么的,那么里面应该也可能触发 TypeError 啊, 后来发现 n 若是不可以被哈希的,也会触发,作者目的其实是想针对 n 的性质。 比如:...
分类:编程语言   时间:2014-07-01 08:34:01    阅读次数:257
python学习遇到的坑
1. 定义变量名和函数名或关键字重名: typeerror 在网上随便copy了一个处理csv文件的源码,运行中总是在input时出错,差错没注意变量声明,导致浪费不少时间在红色剪头处,input的输出用input变量名存放,当再次调用input函数时,就会提示:TypeError: str obj...
分类:编程语言   时间:2014-06-27 21:40:21    阅读次数:353
1000条   上一页 1 ... 97 98 99 100 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!