{"id":10680,"date":"2014-09-15T17:17:00","date_gmt":"2014-09-15T17:17:00","guid":{"rendered":"http:\/\/melotopia.net\/b\/?p=10680"},"modified":"2014-09-15T17:17:00","modified_gmt":"2014-09-15T17:17:00","slug":"%ed%8c%8c%ec%9d%bc-%ec%97%ac%eb%9f%ac%ea%b0%9c-%ea%b3%a8%eb%9d%bc%eb%91%90%eb%a9%b4-%ed%95%9c%eb%b2%88%ec%97%90-%ec%97%b4%ec%96%b4%ec%a3%bc%eb%8a%94-%ed%8c%8c%ec%9d%bc%ec%9d%84-%ec%9e%90%eb%8f%99","status":"publish","type":"post","link":"http:\/\/melotopia.net\/b\/?p=10680","title":{"rendered":"\ud30c\uc77c \uc5ec\ub7ec\uac1c \uace8\ub77c\ub450\uba74 \ud55c\ubc88\uc5d0 \uc5f4\uc5b4\uc8fc\ub294 \ud30c\uc77c\uc744 \uc790\ub3d9\uc0dd\uc131\ud558\ub294 \ud504\ub85c\uadf8\ub7a8"},"content":{"rendered":"<div class=\"desc\">\n<div class=\"tt_article_useless_p_margin\">\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           # -*- coding: utf-8 -*-<br \/>\n           <br \/>\n           import wx<br \/>\n           <br \/>\n           import os<br \/>\n           <br \/>\n           import sys<br \/>\n           <br \/>\n           import os.path<br \/>\n           <br \/>\n           reload(sys)<br \/>\n           <br \/>\n           sys.setdefaultencoding(&#8216;cp949&#8217;)<br \/>\n           <br \/>\n           def myfileopen(f):<br \/>\n           <br \/>\n           myf=open(&#8220;my.bat&#8221;,&#8221;a&#8221;)<br \/>\n           <br \/>\n           myf.write(&#8221; &#8220;+str(f))<br \/>\n           <br \/>\n           myf.close()<\/p>\n<p>           class mainframe(wx.Frame):<br \/>\n           <br \/>\n           def __init__(self, *args, **kwds):<br \/>\n           <br \/>\n           kwds[&#8220;style&#8221;] = wx.DEFAULT_FRAME_STYLE<br \/>\n           <br \/>\n           wx.Frame.__init__(self, *args, **kwds)<br \/>\n           <br \/>\n           dig = wx.FileDialog(None, message=&#8221;Choose data files&#8221;, style = wx.FD_MULTIPLE)<br \/>\n           <br \/>\n           if dig.ShowModal() == wx.ID_OK:<br \/>\n           <br \/>\n           if os.path.isfile(&#8220;my.bat&#8221;):<br \/>\n           <br \/>\n           myf=open(&#8220;my.bat&#8221;,&#8221;a&#8221;)<br \/>\n           <br \/>\n           else:<br \/>\n           <br \/>\n           myf=open(&#8220;my.bat&#8221;,&#8221;w&#8221;)<br \/>\n           <br \/>\n           myf.write(&#8220;C:\\\\Notepad\\\\notepad.exe&#8221;)<br \/>\n           <br \/>\n           myf.close()<br \/>\n           <br \/>\n           for fn in dig.GetPaths():<br \/>\n           <br \/>\n           myfileopen(fn)<\/p>\n<p>           class conv(wx.App):<br \/>\n           <br \/>\n           def OnInit(self):<br \/>\n           <br \/>\n           wx.InitAllImageHandlers()<br \/>\n           <br \/>\n           main = mainframe(None, -1, &#8220;&#8221;)<br \/>\n           <br \/>\n           self.SetTopWindow(main)<br \/>\n           <br \/>\n           main.Show(True)<br \/>\n           <br \/>\n           main.Show(False)<br \/>\n           <br \/>\n           exit()<br \/>\n           <br \/>\n           return 1<\/p>\n<p>           if __name__ == &#8220;__main__&#8221;:<br \/>\n           <br \/>\n           conv = conv(0)<br \/>\n           <br \/>\n           conv.MainLoop()<br \/>\n           \n<\/p>\n<\/div>\n<p>\n\n<\/p>\n<p>\n\n<\/p>\n<p>\n          &#8230;\uc774\ub534\uac78 \uc5b4\ub530 \uc368\uba39\uc9c0&#8230;<br \/>\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=3523\" 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># -*- coding: utf-8 -*- import wx import os import sys import os.path reload(sys) sys.setdefaultencoding(&#8216;cp949&#8217;) def myfileopen(f): myf=open(&#8220;my.bat&#8221;,&#8221;a&#8221;) myf.write(&#8221; &#8220;+str(f)) myf.close() class mainframe(wx.Frame): def __init__(self, *args, **kwds): kwds[&#8220;style&#8221;] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) dig = wx.FileDialog(None, message=&#8221;Choose data files&#8221;, style = wx.FD_MULTIPLE) if dig.ShowModal() == wx.ID_OK: if os.path.isfile(&#8220;my.bat&#8221;): myf=open(&#8220;my.bat&#8221;,&#8221;a&#8221;) else: myf=open(&#8220;my.bat&#8221;,&#8221;w&#8221;) myf.write(&#8220;C:\\\\Notepad\\\\notepad.exe&#8221;) myf.close() for fn [&hellip;]<\/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-10680","post","type-post","status-publish","format-standard","hentry","category-12"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8o6gA-2Mg","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts\/10680","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=10680"}],"version-history":[{"count":0,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts\/10680\/revisions"}],"wp:attachment":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10680"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}