{"id":10324,"date":"2012-08-24T08:38:00","date_gmt":"2012-08-24T08:38:00","guid":{"rendered":"http:\/\/melotopia.net\/b\/?p=10324"},"modified":"2012-08-24T08:38:00","modified_gmt":"2012-08-24T08:38:00","slug":"csv-%eb%a7%8c%eb%93%a4%ea%b8%b0","status":"publish","type":"post","link":"http:\/\/melotopia.net\/b\/?p=10324","title":{"rendered":"csv \ub9cc\ub4e4\uae30"},"content":{"rendered":"<div class=\"desc\">\n<div class=\"tt_article_useless_p_margin\">\n<p>\n          \ud30c\uc774\uc36c\uc5d0\uc11c\ub294 \uc27c\ud45c\ub85c \uad6c\ubd84\ub41c \uc790\ub8cc \ud30c\uc77c\uc778 csv\ud30c\uc77c\uc744 \uc9c0\uc6d0\ud55c\ub2e4. csv\ubaa8\ub4c8\uc774 \uc788\uc5b4\uc11c, \uc774 \ubaa8\ub4c8\uc744 \uc0ac\uc6a9\ud558\uba74 \uc790\uc720\ub86d\uac8c csv\ud30c\uc77c\uc744 \uc539\uace0 \ub72f\uace0 \ub9db\ubcf4\uace0 \uc990\uae38 \uc218 \uc788\uc9c0\ub9cc&#8230;\n         <\/p>\n<p>\n\n<\/p>\n<p>\n<a class=\"tx-link\" href=\"http:\/\/docs.python.org\/library\/csv.html\" target=\"_blank\"><br \/>\n           http:\/\/docs.python.org\/library\/csv.html<br \/>\n          <\/a>\n<\/p>\n<p>\n\n<\/p>\n<p>\n          \ub3c4\uc800\ud788 \uc775\uc219\ud574\uc9c0\uc9c0\ub97c \uc54a\ub294\ub2e4.\n         <\/p>\n<p>\n\n<\/p>\n<p>\n          \ud30c\uc774\uc36c\uc5d0\uc11c \ubc30\uc5f4\uc740 \ub2e4\uc74c\uacfc \uac19\uc774 \ub418\uc5b4 \uc788\ub2e4.\n         <\/p>\n<p>\n\n<\/p>\n<div class=\"txc-textbox\" style=\"border-style: solid; border-width: 1px; border-color: rgb(231, 253, 181); background-color: rgb(231, 253, 181); padding: 10px;\">\n<p>\n           array = [[1,2,3],[3,4,5],[3,4,5]]\n          <\/p>\n<\/div>\n<p>\n\n<\/p>\n<p>\n          \uc774\uac78 str(array)\ub85c \ucd9c\ub825\uc2dc\ucf1c\ubcf4\uba74<br \/>\n          \n<\/p>\n<div class=\"txc-textbox\" style=\"border-style: solid; border-width: 1px; border-color: rgb(219, 232, 251); background-color: rgb(219, 232, 251); padding: 10px;\">\n<p>\n           [[1,2,3],[3,4,5],[3,4,5]]\n          <\/p>\n<\/div>\n<p>\n          \uc774\ub807\uac8c \uadf8\ub300\ub85c \ub098\uc628\ub2e4.\n         <\/p>\n<p>\n\n<\/p>\n<p>\n          \uadf8\ub798\uc11c\n         <\/p>\n<p>\n\n<\/p>\n<div class=\"txc-textbox\" style=\"border-style: solid; border-width: 1px; border-color: rgb(254, 222, 199); background-color: rgb(254, 222, 199); padding: 10px;\">\n<p>\n           for i in array:\n          <\/p>\n<p>\n           mycsv.write(str(i)[1:-1]+&#8221;\\n&#8221;)\n          <\/p>\n<\/div>\n<p>\n\n<\/p>\n<p>\n          \uc774\ub807\uac8c \uad6c\ubb38\uc744 \uc4f0\uba74, \uadf8\ub7f4\ub4ef\ud55c(!) csv\ud30c\uc77c\uc774 \ub9cc\ub4e4\uc5b4\uc9c4\ub2e4.\n         <\/p>\n<p>\n\n<\/p>\n<p>\n\n<\/p>\n<div style=\"width:100%;margin-top:30px;clear:both;height:30px\">\n<div style=\"width:31px;float:left;\">\n<a href=\"\/toolbar\/popup\/abuseReport\/?entryId=3161\" onclick=\"window.open(this.href, 'tistoryThisBlogPopup', 'width=550, height=510, toolbar=no, menubar=no, status=no, scrollbars=no'); return false;\"><br \/>\n<img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\uc2e0\uace0\" src=\"https:\/\/i0.wp.com\/t1.daumcdn.net\/tistory_admin\/static\/ico\/ico_spam_report.png\" style=\"border:0\"\/><br \/>\n<\/a>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\ud30c\uc774\uc36c\uc5d0\uc11c\ub294 \uc27c\ud45c\ub85c \uad6c\ubd84\ub41c \uc790\ub8cc \ud30c\uc77c\uc778 csv\ud30c\uc77c\uc744 \uc9c0\uc6d0\ud55c\ub2e4. csv\ubaa8\ub4c8\uc774 \uc788\uc5b4\uc11c, \uc774 \ubaa8\ub4c8\uc744 \uc0ac\uc6a9\ud558\uba74 \uc790\uc720\ub86d\uac8c csv\ud30c\uc77c\uc744 \uc539\uace0 \ub72f\uace0 \ub9db\ubcf4\uace0 \uc990\uae38 \uc218 \uc788\uc9c0\ub9cc&#8230; http:\/\/docs.python.org\/library\/csv.html \ub3c4\uc800\ud788 \uc775\uc219\ud574\uc9c0\uc9c0\ub97c \uc54a\ub294\ub2e4. \ud30c\uc774\uc36c\uc5d0\uc11c \ubc30\uc5f4\uc740 \ub2e4\uc74c\uacfc \uac19\uc774 \ub418\uc5b4 \uc788\ub2e4. array = [[1,2,3],[3,4,5],[3,4,5]] \uc774\uac78 str(array)\ub85c \ucd9c\ub825\uc2dc\ucf1c\ubcf4\uba74 [[1,2,3],[3,4,5],[3,4,5]] \uc774\ub807\uac8c \uadf8\ub300\ub85c \ub098\uc628\ub2e4. \uadf8\ub798\uc11c for i in array: mycsv.write(str(i)[1:-1]+&#8221;\\n&#8221;) \uc774\ub807\uac8c \uad6c\ubb38\uc744 \uc4f0\uba74, \uadf8\ub7f4\ub4ef\ud55c(!) csv\ud30c\uc77c\uc774 \ub9cc\ub4e4\uc5b4\uc9c4\ub2e4.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12],"tags":[],"class_list":["post-10324","post","type-post","status-publish","format-standard","hentry","category-12"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8o6gA-2Gw","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts\/10324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10324"}],"version-history":[{"count":0,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts\/10324\/revisions"}],"wp:attachment":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10324"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}