返回顶部

收藏

Tools for Working with Lists

更多
# 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])

标签:Python,Data,Type

收藏

0人收藏

支持

0

反对

0

»更多 您可能感兴趣的代码
  1. 2016-02-11 10:46:081 is true in Python by Solon.Ring
  2. 2017-03-13 21:15:13Mixed-type conversions by 山药
  3. 2017-04-04 13:23:59oct and hex function by xwz
  4. 2016-05-30 16:25:19hex literals by jack.chen
  5. 2016-08-19 12:10:45In Python any non-zero integer value is true; zero is false. by 山药
  6. 2016-08-19 12:27:56Complex Number Multiply: the Complex part by 司马
  7. 2016-09-04 09:12:19bitwise AND by 阮小七
  8. 2016-11-21 12:58:55Define and use int by 张宋付
  9. 2016-04-23 15:06:20Code for Handling Large maxints by 山药
  10. 2016-08-19 12:35:54Decimal Floating Point Arithmetic by 山药
  11. 2018-03-30 21:56:50java自动识别用户上传的文本文件编码 by Hugh

发表评论