本文介绍了需要动态多维列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi,

I am looking to store my data that is not in a fixed format in an array or list but as array is of fixed size so cant use that, list provides flexibility but it doesnt comes with multi dimensions option like array does..

I had a data like:

"Acids", "A1", "A2", "A3" - this could grow to ph4 till ph 10 depends

"Sulphur" "S1", "S2",      - this could grow to ph4 till ph 0 depends

"Carbon"   "c1", C2" can grow depends

also after storing it in the list i also need to retrieve in a way that in a loop i should get first Acids then all its sub components that is A1, A2, A3, once done then move to Sulphur and get its corresponding components.

Please can anyone suggest anything on how to best deal with this. 





我尝试了什么:



i尝试使用列表和数组但没有得到很多帮助



What I have tried:

i tried using the lists and arrays but not getting much help

推荐答案


这篇关于需要动态多维列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 14:48