"딕셔너리 리스트"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
(다른 사용자 한 명의 중간 판 7개는 보이지 않습니다)
1번째 줄: 1번째 줄:
[[분류: Dictionary]]
[[분류: 딕셔너리 리스트]]
[[분류: List]]
;dictionary list
;dictionary list
;딕셔너리 리스트
;list of dictionaries
;list of dictionaries
==JavaScript==
==JavaScript==
[[분류: JavaScript]]
[[분류: JavaScript]]
<source lang='JavaScript'>
{{참고|JavaScript 딕셔너리 리스트}}
<syntaxhighlight lang='JavaScript'>
var members = [
var members = [
{id: 102, name: "Ashley Allen", address: "Seoul"},
{id: 102, name: "Ashley Allen", address: "Seoul"},
12번째 줄: 13번째 줄:
];
];
console.log( members );
console.log( members );
</source>
</syntaxhighlight>


==PHP==
==PHP==
[[분류: PHP]]
[[분류: PHP]]
<source lang='PHP'>
{{참고|PHP 딕셔너리 리스트}}
<syntaxhighlight lang='PHP'>
$members = [
$members = [
['id'=>102, 'name'=>'Ashley Allen', 'address'=>'Seoul'],
['id'=>102, 'name'=>'Ashley Allen', 'address'=>'Seoul'],
23번째 줄: 25번째 줄:
];
];
print_r( $members );
print_r( $members );
</source>
</syntaxhighlight>
 
==Python==
[[분류: Python]]
{{참고|Python 딕셔너리 리스트}}
<syntaxhighlight lang='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)
</syntaxhighlight>


==같이 보기==
==같이 보기==

2020년 11월 2일 (월) 02:31 기준 최신판

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

1 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 );

2 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 );

3 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)

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}