我正在尝试使用以下代码将数组 str 32 转换为数组 int 32 但引发错误: int() with base 10: '' 的文字无效:请注意,我需要在 b 的值之间有一个空格作为输入
import numpy as np
a =np.array( (input('8')))
b =np.array((input('8 '' 6 '' 14 '' 7 '' 3 '' 2 '' 11 '' 10')))
c = b.astype(np.int)
一只甜甜圈
相关分类