我正在尝试使用以下代码将数组 str 32 转换为数组 int 32 但引发错误: int() with base 10: '' 的文字无效:请注意,我需要在 b 的值之间有一个空格作为输入import numpy as npa =np.array( (input('8')))b =np.array((input('8 '' 6 '' 14 '' 7 '' 3 '' 2 '' 11 '' 10')))c = b.astype(np.int)
添加回答
举报
0/150
提交
取消