{"id":67,"date":"2015-09-10T06:16:44","date_gmt":"2015-09-10T06:16:44","guid":{"rendered":"http:\/\/coolt.ch\/notizen\/?p=67"},"modified":"2015-09-10T06:43:06","modified_gmt":"2015-09-10T06:43:06","slug":"2-dimensionales-array","status":"publish","type":"post","link":"https:\/\/coolt.ch\/notizen\/2-dimensionales-array\/","title":{"rendered":"2-dimensionales Array"},"content":{"rendered":"<p><strong>Ziel<\/strong><br \/>\n3 x 3 Array mit 0 initialisieren<\/p>\n<p><strong>Struktur: List of list<\/strong><br \/>\nListe mit 3 Elementen, die selbst Listen sind<br \/>\narray = [ [0, 0, 0],\u00a0 [0, 0, 0], [0, 0, 0] ]<\/p>\n<p><strong>Umsetzung simple<\/strong><br \/>\nelement = [ &#8222;0&#8220;] * 3<br \/>\narray = element * 3<\/p>\n<p><strong>Umsetzung variabel<\/strong><br \/>\nfor i in range(3):<br \/>\n.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 array.append( [&#8222;0&#8220; * 3 ]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ziel 3 x 3 Array mit 0 initialisieren Struktur: List of list Liste mit 3 Elementen, die selbst Listen sind array = [ [0, 0, 0],\u00a0 [0, 0, 0], [0, 0, 0] ] Umsetzung simple element = [ &#8222;0&#8220;] * 3 array = element * 3 Umsetzung variabel for i in range(3): .\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 array.append( [&#8222;0&#8220; &hellip; <a href=\"https:\/\/coolt.ch\/notizen\/2-dimensionales-array\/\" class=\"more-link\"><span class=\"screen-reader-text\">2-dimensionales Array<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[18],"_links":{"self":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/67"}],"collection":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":4,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/67\/revisions"}],"predecessor-version":[{"id":71,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/67\/revisions\/71"}],"wp:attachment":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/media?parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/categories?post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/tags?post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}