{"id":1401,"date":"2013-11-24T09:45:48","date_gmt":"2013-11-24T09:45:48","guid":{"rendered":"http:\/\/brain.payzip.co.kr\/?p=1401"},"modified":"2013-11-24T09:45:48","modified_gmt":"2013-11-24T09:45:48","slug":"%ed%8c%8c%ec%9d%b4%ec%8d%ac-%ed%95%a8%ec%88%98-%ed%81%b4%eb%9e%98%ec%8a%a4-%eb%93%b1%ec%9d%98-%ec%a0%95%eb%b3%b4-%ed%99%95%ec%9d%b8-%eb%b0%a9%eb%b2%95","status":"publish","type":"post","link":"https:\/\/blog.goorigo.com\/?p=1401","title":{"rendered":"\ud30c\uc774\uc36c \ud568\uc218, \ud074\ub798\uc2a4 \ub4f1\uc758 \uc815\ubcf4 \ud655\uc778 \ubc29\ubc95"},"content":{"rendered":"<p>\ud30c\uc774\uc36c\uc740 \uc5b8\uc5b4 \uc790\uccb4\ub294 \uac04\ub2e8\ud558\uc9c0\ub9cc, \ub9ce\uc740 Convention \uacfc \ud45c\uc900 \ub77c\uc774\ube0c\ub7ec\ub9ac(Standard Library), \uadf8\ub9ac\uace0 \uc5ec\ub7ec \uac1c\ubc1c\uc744 \ud560 \ub54c \uc0ac\uc6a9\ud558\ub294 \uc678\ubd80 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \ud3ec\ud568\ud558\uba74, \uadf8 \uaddc\ubaa8\ub294 \uc0c1\uc0c1\uc744 \ucd08\uc6d4\ud55c\ub2e4. \ubb38\uc81c\ub294 \uc774\ub4e4\uc744 \uc2e4\uc81c\ub85c \ucc3e\uc544\uc11c \uc0ac\uc6a9\ud574\uc57c \ud55c\ub2e4\ub294 \uac83\uc778\ub370, \uc774\ub97c \uc704\ud574 \uc81c\uacf5\ub418\ub294 \ud30c\uc774\uc36c\uc758 \uc720\ud2f8\ub9ac\ud2f0 \ub4e4\uc744 \uc815\ub9ac\ud574 \ubcf8\ub2e4. \uc601\uc5b4\ub85c \ub418\uc5b4 \uc788\ub294 \ub0b4\uc6a9\ub4e4\uc774\uc9c0\ub9cc, \uac1c\ubc1c\uc790\ub4e4\uc774 \uc2b5\uad00\ub9cc \ubd99\uc774\uba74 \uac1c\ubc1c\ud558\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub420 \uac83\uc73c\ub85c \uc0dd\uac01\ud55c\ub2e4.<\/p>\n<div>\n<p>\ubcf8 \ubb38\uc740\u00a0<strong>Learning Python<\/strong>(Mark Lutz) 4th Edition \uc758 15\uc7a5\uc744 \ubc14\ud0d5\uc73c\ub85c \uc791\uc131\ud558\uc600\ub2e4.<\/p>\n<\/div>\n<h3>dir\ud568\uc218<\/h3>\n<p>Object \uc758 attributes\ub97c \uba85\ub839\uc5b4\uc5d0\uc11c \uc27d\uac8c \ud655\uc778\ud560 \ub54c \uc0ac\uc6a9\ud558\ub294 \ub0b4\uc7a5 \ud568\uc218\uc774\ub2e4. attributes\uac00 \uc788\ub294 \ubaa8\ub4e0 object\uc5d0 \uc4f8 \uc218 \uc788\ub2e4. \ud2b9\uc815 \ubaa8\ub4c8\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 attributes\ub97c \ud655\uc778\ud558\ub294 \ub370 \uc694\uae34\ud558\ub2e4. \uc608\ub97c \ub4e4\uc5b4\u00a0sys\ubaa8\ub4c8\uc5d0 \ubb34\uc5c7\uc774 \uc788\ub294 \uc9c0\ub97c \ud655\uc778\ud558\uae30 \uc704\ud574\uc11c\ub294:<\/p>\n<pre><code>&gt;&gt;&gt; import sys &gt;&gt;&gt; dir(sys) ['__displayhook__', '__doc__', '__egginsert', '__excepthook__', '__name__', '__package__', '__plen', '__stderr__', '__stdin__', '__stdout__', '_clear_type_cache', '_current_frames', '_getframe', 'api_version', 'argv', 'builtin_module_names', 'byteorder', 'call_tracing', 'callstats', 'copyright', 'displayhook', 'dont_write_bytecode', 'exc_clear', 'exc_info', 'exc_type', 'excepthook', 'exec_prefix', 'executable', 'exit', 'flags', 'float_info', 'float_repr_style', 'getcheckinterval', 'getdefaultencoding', 'getdlopenflags', 'getfilesystemencoding', 'getprofile', 'getrecursionlimit', 'getrefcount', 'getsizeof', 'gettrace', 'hexversion', 'last_traceback', 'last_type', 'last_value', 'long_info', 'maxint', 'maxsize', 'maxunicode', 'meta_path', 'modules', 'path', 'path_hooks', 'path_importer_cache', 'platform', 'prefix', 'ps1', 'ps2', 'py3kwarning', 'real_prefix', 'setcheckinterval', 'setdlopenflags', 'setprofile', 'setrecursionlimit', 'settrace', 'stderr', 'stdin', 'stdout', 'subversion', 'version', 'version_info', 'warnoptions']<\/code><\/pre>\n<div><\/div>\n<div><\/div>\n<div>\n<p>\ub9cc\uc57d \ub9ac\uc2a4\ud2b8 \ub370\uc774\ud130 \ud615\uc744 \ub2e4\ub8e8\uace0 \uc788\uc744 \ub54c \ud574\ub2f9 \ud0c0\uc785\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 attributes \uac00 \uae30\uc5b5\ub098\uc9c0 \uc54a\ub294 \ub2e4\uba74<strong>dir([])<\/strong>\u00a0\ucc98\ub7fc \ud574\ub2f9 \ub370\uc774\ud130 \ud615\uc758 \uac12\uc744 \ud30c\ub77c\ubbf8\ud130\ub85c \uc81c\uacf5\ud558\uc5ec \ud655\uc778\ud560 \uc218 \uc788\ub2e4.<\/p>\n<\/div>\n<h3>Docstrings\u00a0__doc__<\/h3>\n<p># comments\uc678\uc5d0, \ud30c\uc774\uc36c\uc740 Object \uc5d0 \ubd99\uc5ec\uc9c0\ub294 documentation \uc744 \uc9c0\uc6d0\ud55c\ub2e4. Docstring\uc774\ub77c\uace0 \ud558\uba70 Runtime \uc5d0 \ud655\uc778\ud560 \uc218 \uc788\ub2e4. \uc774\ub7ec\ud55c documentation\uc740\u00a0__doc__attribute \ub85c \uc81c\uacf5\ub41c\ub2e4. \ubaa8\ub4e0 \uae30\ubcf8 \uc81c\uacf5 \ubaa8\ub4c8\uc5d0 \uc601\ubb38 docstring \uc774 \uc788\uc5b4 \ud65c\uc6a9\ub9cc \ud558\uba74 \ud3b8\ub9ac\ud558\uc9c0\ub9cc, \uad6d\ub0b4 \uac1c\ubc1c\uc790\ub4e4\uc740 \uc798 \ud65c\uc6a9\ud558\uc9c0 \uc54a\uc744 \uc218 \uc788\ub2e4\ub294 \uc0dd\uac01\uc740 \ub4e0\ub2e4.<\/p>\n<pre><code>&gt;&gt;&gt; import sys &gt;&gt;&gt; print sys.__doc__ This module provides access to some objects used or maintained by the interpreter and to functions that interact strongly with the interpreter. Dynamic objects: argv -- command line arguments; argv[0] is the script pathname if known path -- module search path; path[0] is the script directory, else '' modules -- dictionary of loaded modules<\/code><\/pre>\n<div><\/div>\n<div><\/div>\n<p>\uc774\ub807\uac8c \uac1c\ubc1c\uc911\uc5d0 \ud30c\uc774\uc36c \uc258\uc744 \ud1b5\ud574\uc11c \ub9ce\uc740 \uc815\ubcf4\ub97c \uc989\uac01 \ud655\uc778\ud558\uace0 \uc801\uc6a9\ud560 \uc218 \uc788\ub2e4. \uc774 \uc815\ub3c4\ub77c\uba74 \ud06c\uac8c \ub3c4\uc6c0\uc774 \ub418\uc9c0 \uc54a\uc744 \uc218 \uc788\ub294\ub370 \ubaa8\ub4e0 \ud45c\uc900 \ub77c\uc774\ube0c\ub7ec\ub9ac \ud568\uc218\ub4e4\uc774\ub098 \ud074\ub798\uc2a4\uc758 \uc815\ubcf4\ub294 \ub2e4\uc74c\uc758 \ubc29\ubc95\uc744 \uc4f8 \uc218 \uc788\ub2e4.<\/p>\n<h3>PyDoc:\u00a0help\ud568\uc218<\/h3>\n<p>Docstring \uc744 \uc798 \uc815\ub3c8\ud574\uc11c \ubcf4\uc5ec\uc8fc\ub294 \ub0b4\uc7a5 \ud568\uc218\uc774\ub2e4. \ud574\ub2f9 \ud568\uc218\ub97c \uc774\uc6a9\ud558\uc5ec \uc5ec\ub7ec \ubb38\uc11c\ud654 \uc791\uc5c5\uc744 \ud560 \uc218\ub3c4 \uc788\uc9c0\ub9cc \uac1c\ubc1c\uc790 \uc785\uc7a5\uc5d0\uc11c \uac00\uc7a5 \uc798 \uc4f0\ub294 \ubc29\ubc95\uc740 \uc5ed\uc2dc \ud30c\uc774\uc36c \uc258\uc5d0\uc11c \ubc14\ub85c \ubc14\ub85c \ud655\uc778\ud558\ub294 \uac83\uc774\ub2e4. \ub2e4\uc74c\uc758 \uc608\ub97c \ubcf4\uc790.<\/p>\n<pre><code>&gt;&gt;help(map) Help on built-in function map in module __builtin__: map(...) map(function, sequence[, sequence, ...]) -&gt; list Return a list of the results of applying the function to the items of the argument sequence(s). If more than one sequence is given, the function is called with an argument list consisting of the corresponding item of each sequence, substituting None for missing values when not all sequences have the same length. If the function is None, return a list of the items of the sequence (or a list of tuples if more than one sequence).<\/code><\/pre>\n<div><\/div>\n<div><\/div>\n<p>\ud0c0\uc785\uc774\ub098 \ud568\uc218, \ud074\ub798\uc2a4, \ubaa8\ub4c8 \ubaa8\ub450\uc5d0 \ub300\ud574 \ud65c\uc6a9\ud560 \uc218 \uc788\ub2e4. \ud30c\uc774\uc36c \ud45c\uc900 \ub77c\uc774\ube0c\ub7ec\ub9ac \uc18c\uc2a4\ucf54\ub4dc\uc5d0\uc11c \uc9c1\uc811 \uc0dd\uc131\ub418\ub294 \uac83\uc774\uae30 \ub54c\ubb38\uc5d0 \ubc84\uc804\uc5d0 \ub530\ub77c \ub2ec\ub77c\uc9c0\ub294 \uac12\uc5d0 \ub300\ud55c \uac71\uc815\ub3c4 \ud544\uc694\uc5c6\ub2e4. \uc678\ubd80 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc4f0\ub294 \uacbd\uc6b0\uc5d0\ub3c4 \ud574\ub2f9 \ud568\uc218\ub97c \uc9c0\uc6d0\ud558\ub294 \uacbd\uc6b0\uac00 \ub9ce\uae30 \ub54c\ubb38\uc5d0 &#8212; \uc81c\ub300\ub85c \ubb38\uc11c\ud654 \ud558\ub294 \uac1c\ubc1c\uc790\ub4e4\ub3c4 \ub9ce\ub2e4. &#8212; \uc2b5\uad00\ub9cc \uc798 \ub4e4\uc774\uba74 \ud30c\uc774\uc36c \uc258\uc744 \ud65c\uc6a9\ud558\ub294 \uae30\ud68c\ub3c4 \ub418\uace0 \uc6f9\uc744 \ub4a4\uc9c0\uc9c0 \uc54a\uc544\ub3c4 \ub41c\ub2e4.<\/p>\n<div>\n<h3>\ubcf4\ub108\uc2a4 &#8211; \ud30c\uc774\uc36c 2.7\uc758 \uc0c8\ub85c\uc6b4 \uc9d1\ud569(set) \uae30\ub2a5 \ud655\uc778<\/h3>\n<p>\uc9c0\uae08 \ud30c\uc774\uc36c \uc258\uc5d0\uc11c\u00a0<strong>help({1, 2})<\/strong>\ub97c \uccd0\ubcf4\ub77c. 3.X \ubc84\uc804\uc5d0 \ubcf4\uac15\ub41c set \uae30\ub2a5\uc774 2.7\uc5d0 \ucd94\uac00\ub418\uc5c8\ub294\ub370, \ud30c\uc774\uc36c \ubc84\uc804\uc774 2.7 \uc774\uc0c1\uc774\ub77c\uba74, set \uc5d0 \ub300\ud55c \uce5c\uc808\ud55c \uc124\uba85\uc774 \ub098\uc624\uace0 2.6 \uc774\ud558 \ubc84\uc804\uc5d0\uc11c\ub294SyntaxError\uac00 \ub098\uc62c \uac83\uc774\ub2e4.\u00a0\u00a0\ud30c\uc774\uc36c 2.7\uc740 3.X \ubc84\uc804 \uc774\uc804 \ubc84\uc804\uc73c\ub85c\ub294 \ub9c8\uc9c0\ub9c9 \ubc84\uc804\uc774 \ub420 \uac83\uc73c\ub85c \uacb0\uc815\ub418\uc5c8\uae30 \ub54c\ubb38\uc5d0 \uc624\ub7ab\ub3d9\uc548 \uc720\uc9c0\ubcf4\uc218\uac00 \ub41c\ub2e4\uace0 \ud558\ub2c8 2.7 \ubc84\uc804\uc744 \uae30\ubc18\uc73c\ub85c \uac1c\ubc1c\uc744 \ud558\ub294 \uac83\uc744 \uc801\uadf9 \uad8c\uc7a5\ud55c\ub2e4.<\/p>\n<\/div>\n<div>\n<div><\/div>\n<div>\ucd9c\ucc98 :\u00a0<a href=\"http:\/\/www.ironbag.net\/page\/6daf5f41ae9b4688b438ac0e1cd65f95\">http:\/\/www.ironbag.net\/page\/6daf5f41ae9b4688b438ac0e1cd65f95<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\ud30c\uc774\uc36c\uc740 \uc5b8\uc5b4 \uc790\uccb4\ub294 \uac04\ub2e8\ud558\uc9c0\ub9cc, \ub9ce\uc740 Convention \uacfc \ud45c\uc900 \ub77c\uc774\ube0c\ub7ec\ub9ac(Standard Library), \uadf8\ub9ac\uace0 \uc5ec\ub7ec \uac1c\ubc1c\uc744 \ud560 \ub54c \uc0ac\uc6a9\ud558\ub294 \uc678\ubd80 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \ud3ec\ud568\ud558\uba74, \uadf8 \uaddc\ubaa8\ub294 \uc0c1\uc0c1\uc744 \ucd08\uc6d4\ud55c\ub2e4. \ubb38\uc81c\ub294 \uc774\ub4e4\uc744 \uc2e4\uc81c\ub85c \ucc3e\uc544\uc11c \uc0ac\uc6a9\ud574\uc57c \ud55c\ub2e4\ub294 \uac83\uc778\ub370,&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts\/1401"}],"collection":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1401"}],"version-history":[{"count":0,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts\/1401\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}