딕셔너리 리스트


dictionary list
딕셔너리 리스트
list of dictionaries

JavaScript

var members = [
	{id: 102, name: "Ashley Allen", address: "Seoul"},
	{id: 202, name: "Peter Parker", address: "New York"},
	{id: 104, name: "John Smith", address: "Tokyo"},
];
console.log( members );

PHP

$members = [
	['id'=>102, 'name'=>'Ashley Allen', 'address'=>'Seoul'],
	['id'=>202, 'name'=>'Peter Parker', 'address'=>'New York'],
	['id'=>104, 'name'=>'John Smith', 'address'=>'Tokyo'],
];
print_r( $members );

Python

members = [
    {'id': 102, 'name': "Ashley Allen", 'address': "Seoul"},
    {'id': 202, 'name': "Peter Parker", 'address': "New York"},
    {'id': 104, 'name': "John Smith", 'address': "Tokyo"},
]
print(members)

같이 보기