1ãéåå¯ä»¥æListï¼vectorçï¼å
¶å®mapä¹æ¯ä¸ä¸ªéå
2ãè¿äºéåæå¥ç¨å¢ï¼å°±å¥½æ¯ä½ æä¸å æ°æ®è¦åï¼
[name='å¼ ä¸' , age=20, address='å京']
[name='æå' , age=15, address='æ¹å']
[name='çäº' , age=18, address='çè']ççï¼
è¿æ ·ä¸æ¡ä¸æ¡çæ°æ®ä½ å°±è½å¤ç¨éåæ¥ä¿åèµ·æ¥ï¼æ¾å°ä¸æ¡éåä¸å»
3ãä¾å¦ç¨listæ¥ä¿åï¼ä¿åå½¢å¼å°±å¦ä¸ï¼
list = {[name='å¼ ä¸' , age=20, address='å京']ï¼ [name='æå' , age=15, address='æ¹å'] ï¼ [name='çäº' , age=18, address='çè']};
è¿æ ·çå½¢å¼äºï¼ç¶ååå¼çæ¶åä½ å°±å¯ä»¥æ ¹æ®list.get(i)æ¥åå«åå¼äºã
4ãå¦æè¦åå°æ¯ä¸æ¡éé¢çå±æ§ï¼é£ä¹å¯ä»¥é
åmapæè
åå¨çæ¯å®ä½ç±»å¯¹è±¡ï¼æ¥åå«åå¼å°±å¯¹äºï¼é常çç®åä¸å®ç¨
温馨提示:答案为网友推荐,仅供参考