用于存储和读取存储数组的python库。
Arrays的Python项目详细描述
arrays是一个用于存储阵列和从存储阵列检索数据的项目。
要存储数据,请尝试以下操作:
fromArrays.arraysimportArraysarray=Arrays([10,20,30])array.save_array("array.data")
要从存储数组中检索整数,请使用以下命令:
fromArrays.arraysimportArraysarray=Arrays([])custom_array=array.convert_stored_to_array("array.data")
对于任何其他类型,请使用此:
fromArrays.arraysimportArraysarray=Arrays([])custom_array=array.convert_stored_to_array("array.data",_objects_type="int/str/float/tuple")#_objects_type is the type the stored data is being converted to, and put into an array.#Say you want the arrays to be an integer, use int.