0
변환 PHP 코드 : 파이썬파이썬 : 추가] 사전 새로운 요소
$this->plane[$slice_id][$f][] = array('x' => $y, 'y' => $z);
:
self.plane[slice_id][f][] = {'x' : y, 'y' : z};
self.plane = {};
1) self.plane[slice_id][f]
-> 아직 초기화되지 않았습니다. 필요한 경우이 요소 만 작성하십시오.
2) []
- 배열> 푸시 소자
3) 파이썬 사전
가있는 [무한 defaultdict (http://stackoverflow.com/questions/4178249 파이썬 유효 구문없는/무한 중첩 - 파이썬 사전). –