继续学习
Array VS list
From array
module to import array function, the above result would be:
区别如下
Array 用法
https://docs.python.org/3/library/array.html#module-array
This module defines an object type which can compactly represent an array of basic values: characters, integers, floating point numbers. Arrays are sequence types and behave very much like lists, except that the type of objects stored in them is constrained. The type is specified at object creation time by using a type code, which is a single character. The following type codes are defined:
格式就是array('<type>', <objects>)
用于储存同一种类型的元素,方便归类管理。