Tools for Working with Lists

2019-06-19 20:02栏目:技术创新

# The array module provides an array() object that stores only 
# homogenous data. 

from array import array

a = array('H', [4000, 10, 700, 22222])
sum(a)

a[1:3]
array('H', [10, 700])

版权声明:本文由新浦京娱乐站_新浦京娱乐场官网_新浦京娱乐发布于技术创新,转载请注明出处:Tools for Working with Lists