鱼C论坛's Archiver
论坛
›
Python交流
› python报错
老牛来学习
发表于 2020-12-13 23:00:28
python报错
i = '123'
print(i.dtype)
上述代码报错
File "D:/pycharm/pythonProject1/main.py", line 30, in <module>
print(i.dtype)
AttributeError: 'str' object has no attribute 'dtype'
为什么会报这种错
小甲鱼的铁粉
发表于 2020-12-13 23:09:11
i = '123'
print(type(i))
type的语法错误了
页:
[1]
查看完整版本:
python报错