简体   繁体   中英

Convert list of tuples into numpy array

How to convert this:

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

to numpy array?

你有尝试过吗?

np.asarray(x)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM