【问题标题】:Convert list of tuples into numpy array将元组列表转换为 numpy 数组
【发布时间】:2014-12-19 08:00:47
【问题描述】:

如何转换:

x = [(65535, 9976, 65535, 5690, 6.8501953124999995), (65535, 8779, 65312, 5045, 21.178124999999998)]

到 numpy 数组?

【问题讨论】:

标签: python python-3.x numpy


【解决方案1】:

你试过了吗?

np.asarray(x)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-08-28
    • 2018-05-03
    • 2017-03-08
    • 1970-01-01
    • 2018-03-16
    • 2019-08-30
    • 2015-01-07
    相关资源
    最近更新 更多