如何在 python 中将数组 str 32 转换为数组 int 32

How to convert array str 32 to array int 32 in python

我正在尝试使用以下代码将数组 str 32 转换为数组 int 32,但出现错误:invalid literal for int() with base 10: '' 请注意,我需要一个 space 在 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)
b = np.array(raw_input("input your number:").split())
c = b.astype(np.int)