标签: python numpy iterator generator sympy
如何将带有字符串元素的嵌套迭代器转换为numpy数组?应该使用哪个dtype?
dtype
from sympy.utilities.iterables import variations x=variations(["H","T"],3, True) np.fromiter(x, dtype=string)