然后执行出现了

File “pandas/_libs/src\numpy.pxd”, line 157, in init pandas._libs.tslib

AttributeError: module ‘numpy’ has no attribute ‘array’

报错信息。

纳闷了,代码怎么在命令行可以执行,在ide执行不了。

后来改了个文件名称,改为RandomNum.py就可以执行了。

注意要删干净

解决module ‘numpy‘ has no attribute ‘array‘问题_解决module
#python3 的print需要括号