2007年12月11日 星期二 13:05
网上这方面解释的东西很少,搜了一下,未果 >>> from pylab import * >>> x = linspace(-4, 4, 200) >>> f1=power(10, x) Traceback (most recent call last): File "", line 1, in ? File "mtrand.pyx", line 1038, in mtrand.RandomState.power File "mtrand.pyx", line 149, in mtrand.cont1_array_sc ValueError: sequence too large; must be smaller than 32 这是什么原因? 我使用的环境: Python 2.4.4 Stackless 3.1b3 060516 (#71, Jan 27 2007, 21:48:58) [MSC v.131032bit (Intel)] on win32 安装了:numpy-1.0.4.win32-py2.4.exe,matplotlib-0.91.1.win32-py2.4.exe 多谢。 -------------- 下一部分 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20071211/fcb66dbf/attachment.htm
2007年12月11日 星期二 13:17
²»ÊÇÒѽ¸æÔVÄãÔÒòÁË᣿ ValueError: sequence too large; must be smaller than 32 On Dec 11, 2007 1:05 PM, yuan xuan <xuanyuan14.leo在gmail.com> wrote: > ÍøÉÏÕâ·½Ãæ½âÊ͵Ķ«Î÷ºÜÉÙ£¬ËÑÁËһϣ¬Î´¹û > > >>> from pylab import * > >>> x = linspace(-4, 4, 200) > >>> f1=power(10, x) > Traceback (most recent call last): > File "", line 1, in ? > File "mtrand.pyx", line 1038, in mtrand.RandomState.power > File "mtrand.pyx", line 149, in mtrand.cont1_array_sc > ValueError: sequence too large; must be smaller than 32 > > ÕâÊÇʲôÔÒò£¿ > ÎÒʹÓõĻ·¾³£º > Python 2.4.4 Stackless 3.1b3 060516 (#71, Jan 27 2007, 21:48:58) [MSC > v.1310 32bit (Intel)] on win32 > °²×°ÁË£ºnumpy-1.0.4.win32-py2.4.exe£¬matplotlib-0.91.1.win32-py2.4.exe > > ¶àл¡£ > > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20071211/d32b67cb/attachment-0001.htm
2007年12月11日 星期二 14:28
我就是对这个报错感到莫名其妙啊。 不过已经找到原因了,应该用numpy中的函数。pylab中的可能限制比较多。 加一句:from numpy import * 多谢。 在07-12-11,zuggie <zuggie.zhu在gmail.com> 写道: > > 不是已經告訴你原因了嗎? > ValueError: sequence too large; must be smaller than 32 > > On Dec 11, 2007 1:05 PM, yuan xuan <xuanyuan14.leo在gmail.com> wrote: > > > 网上这方面解释的东西很少,搜了一下,未果 > > > > >>> from pylab import * > > >>> x = linspace(-4, 4, 200) > > >>> f1=power(10, x) > > Traceback (most recent call last): > > File "", line 1, in ? > > File "mtrand.pyx", line 1038, in mtrand.RandomState.power > > File "mtrand.pyx", line 149, in mtrand.cont1_array_sc > > ValueError: sequence too large; must be smaller than 32 > > > > 这是什么原因? > > 我使用的环境: > > Python 2.4.4 Stackless 3.1b3 060516 (#71, Jan 27 2007, 21:48:58) [MSC > > v.1310 32bit (Intel)] on win32 > > 安装了:numpy-1.0.4.win32-py2.4.exe,matplotlib-0.91.1.win32-py2.4.exe > > > > 多谢。 > > > > _______________________________________________ > > python-chinese > > Post: send python-chinese在lists.python.cn > > Subscribe: send subscribe to python-chinese-request在lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -------------- 下一部分 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20071211/190824b3/attachment-0001.htm
Zeuux © 2024
京ICP备05028076号