{"id":227,"date":"2026-05-15T05:32:38","date_gmt":"2026-05-14T21:32:38","guid":{"rendered":"https:\/\/junai.ai\/blog\/python-class-14\/"},"modified":"2026-05-17T07:31:22","modified_gmt":"2026-05-16T23:31:22","slug":"python-class-14","status":"publish","type":"post","link":"https:\/\/junai.ai\/blog\/python-class-14\/","title":{"rendered":"\ud30c\uc774\uc36c \ud074\ub798\uc2a4 \uc785\ubb38 \u2014 class\u00b7__init__\u00b7self (14\ud3b8)"},"content":{"rendered":"\n<!-- WordPress REST API \ubc1c\ud589\uc6a9 HTML (\uc790\ub3d9 \uc0dd\uc131) -->\n<!-- WP-FEATURED-MEDIA-ID: 593 -->\n<div style=\"max-width:800px;margin:0 auto;\">\n<style>\n\/* js-textbook \u2014 PostgreSQL \uad50\uc7ac \ub3d9\uc77c \ud314\ub808\ud2b8 *\/\n:root {\n  --color-primary: #336791;\n  --color-accent: #60a5fa;\n  --color-bg: #fafafa;\n  --color-bg-card: #ffffff;\n  --color-text: #1e293b;\n  --color-text-muted: #64748b;\n  --hero-start: #0f172a;\n  --hero-end: #336791;\n  --font-body: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;\n  --size-body: 17px;\n  --line-height: 1.75;\n}\n* { box-sizing: border-box; }\n.container { max-width: 760px; margin: 0 auto; padding: 0 22px 80px; }\n.hero { background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%); color: #fff; padding: 72px 22px 56px; text-align: center; }\n.hero .badge { display: inline-block; background: rgba(96,165,250,0.18); color: var(--color-accent); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 18px; }\n.hero h1 { margin: 0 0 18px; font-size: 36px; line-height: 1.3; letter-spacing: -0.3px; }\n.hero p.sub { margin: 0 auto; max-width: 580px; font-size: 17px; color: #bfdbfe; }\n.hero img { width: 100%; max-width: 720px; height: auto; margin: 36px auto 0; display: block; border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }\n.meta { display: flex; gap: 14px; justify-content: center; margin-top: 20px; font-size: 13px; color: #93c5fd; flex-wrap: wrap; }\n.meta span::before { content: \"\u00b7\"; margin-right: 14px; color: #1e3a8a; }\n.meta span:first-child::before { content: \"\"; margin: 0; }\narticle { background: var(--color-bg-card); margin-top: -36px; padding: 44px 28px; border-radius: 14px; box-shadow: 0 2px 18px rgba(0,0,0,0.06); }\narticle p { margin: 0 0 18px; }\nh2 { font-size: 28px; line-height: 1.35; letter-spacing: -0.3px; margin: 48px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--color-primary); }\nh2:first-of-type { margin-top: 8px; }\nh3 { font-size: 21px; line-height: 1.4; margin: 30px 0 12px; color: var(--color-primary); }\ncode { background: #f1f5f9; color: #0f172a; padding: 2px 6px; border-radius: 4px; font-family: 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.92em; }\npre { background: #0f172a; color: #e2e8f0; padding: 18px 20px; border-radius: 10px; overflow-x: auto; font-size: 14.5px; line-height: 1.65; margin: 18px 0; }\npre code { background: transparent; color: inherit; padding: 0; }\nul, ol { margin: 0 0 18px; padding-left: 24px; }\nli { margin-bottom: 8px; }\nstrong { color: #0f172a; }\n.databox { background: #eff6ff; border-left: 4px solid var(--color-primary); padding: 18px 20px; border-radius: 6px; margin: 22px 0; }\n.databox p { margin: 0 0 8px; }\n.databox p:last-child { margin: 0; }\n.databox strong { color: var(--color-primary); }\n.warnbox { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border-left: 4px solid #d97706; padding: 18px 20px; border-radius: 6px; margin: 22px 0; }\n.warnbox strong { color: #92400e; }\n.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 22px 0; }\ntable { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--color-bg-card); }\nth, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid #e2e8f0; vertical-align: top; }\nth { background: #f1f5f9; font-weight: 700; color: #0f172a; }\ntd:first-child, th:first-child { font-weight: 700; }\n.cta { background: linear-gradient(135deg, #336791 0%, #60a5fa 100%); color: #fff; padding: 30px 24px; border-radius: 12px; margin-top: 44px; text-align: center; }\n.cta h3 { color: #fff; margin: 0 0 10px; }\n.cta p { margin: 0; color: #dbeafe; }\n.series-nav { background: #eff6ff; padding: 18px 22px; border-radius: 10px; margin-top: 24px; font-size: 14.5px; color: var(--color-text-muted); }\n.series-nav strong { color: var(--color-primary); }\n@media (max-width: 480px) {\n  .hero { padding: 52px 18px 44px; }\n  .hero h1 { font-size: 26px; }\n  .hero p.sub { font-size: 15px; }\n  article { padding: 28px 18px; border-radius: 10px; }\n  h2 { font-size: 22px; }\n  h3 { font-size: 18px; }\npre { font-size: 13px; padding: 14px 16px; }\n}\n@media (max-width: 560px) {\n  .tablewrap table, .tablewrap thead, .tablewrap tbody, .tablewrap tr, .tablewrap th, .tablewrap td { display: block; width: auto; }\n  .tablewrap thead { display: none; }\n  .tablewrap tr { margin: 0 0 14px; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }\n  .tablewrap td { border: none; border-bottom: 1px solid #f1f5f9; padding: 9px 14px; }\n  .tablewrap td:first-child { background: #eff6ff; font-weight: 800; font-size: 15.5px; }\n  .tablewrap td:last-child { border-bottom: none; }\n  .tablewrap td[data-label]::before { content: attr(data-label) \" \u2014 \"; font-weight: 700; color: var(--color-primary); }\n}\n<\/style>\n<header class=\"hero\">\n  <span class=\"badge\">\ud30c\uc774\uc36c \uad50\uc7ac \u00b7 14\ud3b8 \/ 27\ud3b8<\/span>\n  <h1>\ud30c\uc774\uc36c \ud074\ub798\uc2a4 \uc785\ubb38 \u2014 class\u00b7__init__\u00b7self<\/h1>\n  <p class=\"sub\">\ub370\uc774\ud130\uc640 \ub3d9\uc791\uc744 \ud55c \ub2e8\uc704\ub85c \ubb36\uae30. \uac1d\uccb4\uc9c0\ud5a5\uc758 \uccab \ubc1c\uac78\uc74c.<\/p>\n  <div class=\"meta\"><span>\uae30\ucd08<\/span><span>\uc77d\ub294 \uc2dc\uac04 7\ubd84<\/span><span>2026-05-13<\/span><\/div>\n  <img decoding=\"async\" src=\"https:\/\/junai.ai\/blog\/wp-content\/uploads\/2026\/05\/hero-212.jpg\" alt=\"Student \ud074\ub798\uc2a4 \uc815\uc758\uc640 \uc778\uc2a4\ud134\uc2a4 \uc0dd\uc131, \uba54\uc11c\ub4dc \ud638\ucd9c \ucf54\ub4dc \ud654\uba74\">\n<\/header>\n\n<div class=\"container\">\n<article>\n\n<p>\ud559\uc0dd 30\uba85\uc744 dict \ub9ac\uc2a4\ud2b8\ub85c \ucc98\ub9ac\ud558\ub2e4 \ubcf4\uba74 \uc2ac\uc2ac \ub2f5\ub2f5\ud574\uc9d1\ub2c8\ub2e4. <em>&#8220;\ud559\uc810 \uacc4\uc0b0&#8221;<\/em>\u00b7<em>&#8220;\uc774\ub984 \ucd9c\ub825&#8221;<\/em>\u00b7<em>&#8220;\ub4f1\uc218 \ub9e4\uae30\uae30&#8221;<\/em> \ud568\uc218\uac00 \ubaa8\ub450 <code>student[\"name\"]\u00b7student[\"score\"]<\/code> \uac19\uc740 dict \uc811\uadfc\uc744 \ubc18\ubcf5\ud558\uace0, \uac19\uc740 \ud0a4\ub97c \ub9e4\ubc88 \uc801\ub294 \uac8c \uc2e4\uc218\uc758 \uc6d0\ucc9c. \ud559\uc0dd \ud55c \uba85\uc744 <strong>&#8220;\ub370\uc774\ud130(\uc774\ub984\u00b7\uc810\uc218) + \ub3d9\uc791(\ud559\uc810\u00b7\uc778\uc0ac)&#8221;<\/strong> \ud55c \ub2e8\uc704\ub85c \ubb36\uc744 \uc218 \uc788\ub2e4\uba74 \ucf54\ub4dc\uac00 \ud6e8\uc52c \uc815\ub3c8\ub429\ub2c8\ub2e4. \uadf8 \ub2e8\uc704\uac00 <strong>\ud074\ub798\uc2a4<\/strong>(class).<\/p>\n\n<p>14\ud3b8\uc744 \ub9c8\uce58\uba74 \u2460 <code>class<\/code> \uc815\uc758 \uae30\ubcf8 \u2461 <code>__init__<\/code> \uc0dd\uc131\uc790 \u2462 <code>self<\/code> \uc758 \uc758\ubbf8 \u2463 \uc778\uc2a4\ud134\uc2a4 \uba54\uc11c\ub4dc\uc640 \uc18d\uc131 \u2464 <code>dataclass<\/code> \ub85c \uc9e7\uac8c \u2014 5\uac00\uc9c0\uac00 \uc190\uc5d0 \uc775\uc2b5\ub2c8\ub2e4.<\/p>\n\n<h2>class \u2014 \ub370\uc774\ud130\uc640 \ub3d9\uc791\uc744 \ud55c \ubb36\uc74c\uc73c\ub85c<\/h2>\n\n<pre><code>class Student:\n    def __init__(self, name, score):\n        self.name = name           # \uc18d\uc131(attribute) \uc800\uc7a5\n        self.score = score\n\n    def grade(self):                # \uc778\uc2a4\ud134\uc2a4 \uba54\uc11c\ub4dc\n        if self.score &gt;= 90: return \"A\"\n        if self.score &gt;= 80: return \"B\"\n        if self.score &gt;= 70: return \"C\"\n        return \"F\"\n\n    def greet(self):\n        return f\"\uc548\ub155\ud558\uc138\uc694, {self.name} \uc785\ub2c8\ub2e4\"\n\n# \uc778\uc2a4\ud134\uc2a4 \ub9cc\ub4e4\uae30 \u2014 \ud074\ub798\uc2a4\ub97c \ud568\uc218\ucc98\ub7fc \ud638\ucd9c\ns1 = Student(\"\uc900\uc131\", 88)\ns2 = Student(\"\uc218\ubbfc\", 92)\n\ns1.grade()              # 'B'\ns2.greet()              # '\uc548\ub155\ud558\uc138\uc694, \uc218\ubbfc \uc785\ub2c8\ub2e4'\ns1.name                 # '\uc900\uc131' \u2014 \uc18d\uc131 \uc9c1\uc811 \uc811\uadfc<\/code><\/pre>\n\n<p>\uad6c\uc131 \uc694\uc18c \ub124 \uac00\uc9c0.<\/p>\n\n<ul>\n  <li><strong>class \uc774\ub984<\/strong> \u2014 \uad00\ub840\uc801\uc73c\ub85c <code>PascalCase<\/code> (\ub2e8\uc5b4 \uccab \uae00\uc790 \ub300\ubb38\uc790). \ubcc0\uc218\u00b7\ud568\uc218\uc758 snake_case \uc640 \uad6c\ubd84<\/li>\n  <li><strong>__init__<\/strong> \u2014 \uc778\uc2a4\ud134\uc2a4\uac00 \uc0dd\uae38 \ub54c \ud638\ucd9c\ub418\ub294 <em>\uc0dd\uc131\uc790<\/em>. \uc591\uc606 \uc5b8\ub354\uc2a4\ucf54\uc5b4 2\uac1c\uc529 (&#8220;\ub358\ub354 \uba54\uc11c\ub4dc&#8221;)<\/li>\n  <li><strong>self<\/strong> \u2014 \uccab \uc778\uc790\uc5d0 \ud56d\uc0c1 \ub4f1\uc7a5. <em>&#8220;\uc9c0\uae08 \ub9cc\ub4e4\uc5b4\uc9c4\/\ud638\ucd9c\ub41c \uc774 \uc778\uc2a4\ud134\uc2a4&#8221;<\/em> \ub97c \uac00\ub9ac\ud0a4\ub294 \uc790\ub3d9 \uc778\uc790<\/li>\n  <li><strong>self.\uc18d\uc131<\/strong> \u2014 \uc778\uc2a4\ud134\uc2a4\uc5d0 \ub370\uc774\ud130 \uc800\uc7a5. \uac19\uc740 \ud074\ub798\uc2a4\uc758 \ub2e4\ub978 \uc778\uc2a4\ud134\uc2a4\ub07c\ub9ac \ub3c5\ub9bd<\/li>\n<\/ul>\n\n<h2>self \uc758 \uc758\ubbf8 \u2014 \uac00\uc7a5 \ud5f7\uac08\ub9ac\ub294 \ud55c \ub2e8\uc5b4<\/h2>\n\n<p>\uc785\ubb38\uc790\uac00 \ud074\ub798\uc2a4\ub97c \uc5b4\ub835\uac8c \ub290\ub07c\ub294 1\ubc88 \uc774\uc720\uac00 <code>self<\/code>. \ub2e4\ub978 \uc5b8\uc5b4\ub294 <code>this<\/code> \ub77c\ub294 \ud0a4\uc6cc\ub4dc\ub85c \uc228\uae30\ub294\ub370, \ud30c\uc774\uc36c\uc740 \uba85\uc2dc\uc801\uc73c\ub85c \uc801\uac8c \ub9cc\ub4ed\ub2c8\ub2e4.<\/p>\n\n<pre><code>s1 = Student(\"\uc900\uc131\", 88)\ns1.grade()\n# \uc704 \ud638\ucd9c\uc740 \uc0ac\uc2e4 \uc774\ub807\uac8c \ub3d9\uc791:\n# Student.grade(s1)\n# \u2192 self \uc790\ub9ac\uc5d0 s1 \uc774 \uc790\ub3d9\uc73c\ub85c \ub4e4\uc5b4\uac10<\/code><\/pre>\n\n<p><strong><code>s1.grade()<\/code> \uc758 \uc548 \ubcf4\uc774\ub294 \uccab \uc778\uc790\uac00 <code>s1<\/code> \uc790\uc2e0<\/strong>. \uadf8\ub798\uc11c \uba54\uc11c\ub4dc \uc815\uc758\uc5d0 <code>self<\/code> \uac00 \ubc18\ub4dc\uc2dc \ub4e4\uc5b4\uac00\uc57c \ud558\uace0, \ud638\ucd9c\ud560 \ub550 \uc548 \uc801\uc5b4\uc694. \ud55c \uc904\ub85c \uc815\ub9ac\ud558\uba74 <em>&#8220;\uc810 \uc55e\uc758 \uac1d\uccb4\uac00 \uccab \uc778\uc790\ub85c \uc790\ub3d9 \uc804\ub2ec\ub41c\ub2e4&#8221;<\/em>.<\/p>\n\n<div class=\"databox\">\n  <p><strong>\ud83d\udccc self \ub294 \ud0a4\uc6cc\ub4dc\uac00 \uc544\ub2c8\ub2e4<\/strong><\/p>\n  <p>\uc2e4\uc740 \ub2e8\uc21c\ud55c \uad00\ub840. \uccab \uc778\uc790 \uc774\ub984\uc744 <code>this<\/code>\u00b7<code>me<\/code> \ub85c \uc801\uc5b4\ub3c4 \ub3d9\uc791\ud569\ub2c8\ub2e4(\uc5c4\uccad \uad8c\uc7a5 X). \ubaa8\ub450\uac00 <code>self<\/code> \ub97c \uc4f0\ub294 \uac74 \ucf54\ub4dc \uac00\ub3c5\uc131\uacfc \ud611\uc5c5\uc744 \uc704\ud55c \uc57d\uc18d. \ubcf8\uc778 \ucf54\ub4dc\ub3c4 \ubc18\ub4dc\uc2dc <code>self<\/code> \ub85c.<\/p>\n<\/div>\n\n<h2>\uc778\uc2a4\ud134\uc2a4 vs \ud074\ub798\uc2a4 \u2014 \ub450 \ub2e8\uacc4\uc758 \ub370\uc774\ud130<\/h2>\n\n<p>\uc18d\uc131\uc5d0\ub294 \ub450 \uc885\ub958\uac00 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n<pre><code>class Student:\n    school = \"\uc8fc\ub098\uc774\uace0\"        # \ud074\ub798\uc2a4 \uc18d\uc131 \u2014 \ubaa8\ub4e0 \uc778\uc2a4\ud134\uc2a4 \uacf5\ud1b5\n\n    def __init__(self, name):\n        self.name = name        # \uc778\uc2a4\ud134\uc2a4 \uc18d\uc131 \u2014 \uac01\uc790 \ub2e4\ub984\n\ns1 = Student(\"\uc900\uc131\")\ns2 = Student(\"\uc218\ubbfc\")\n\ns1.name == s2.name              # False \u2014 \uac01\uc790 \ub2e4\ub984\ns1.school == s2.school          # True  \u2014 \uac19\uc74c\nStudent.school                  # '\uc8fc\ub098\uc774\uace0' \u2014 \ud074\ub798\uc2a4\ub85c\ub3c4 \uc811\uadfc\n\nStudent.school = \"JUNAI\"        # \ud074\ub798\uc2a4 \uc18d\uc131\uc744 \ubc14\uafb8\uba74\ns1.school                       # 'JUNAI' \u2014 \ubaa8\ub4e0 \uc778\uc2a4\ud134\uc2a4\uc5d0 \ubc18\uc601<\/code><\/pre>\n\n<p>\ud074\ub798\uc2a4 \uc18d\uc131\uc740 <em>&#8220;\ubaa8\ub450\uc5d0\uac8c \uacf5\ud1b5\uc778 \uc0ac\uc2e4&#8221;<\/em> \u2014 \ud559\uad50 \uc774\ub984\u00b7\uae30\ubcf8\uac12\u00b7\uce74\uc6b4\ud130 \uac19\uc740 \uac83. \uc778\uc2a4\ud134\uc2a4 \uc18d\uc131\uc740 <em>&#8220;\uac01\uc790 \ub2e4\ub978 \uac12&#8221;<\/em> \u2014 \uc774\ub984\u00b7\uc810\uc218\u00b7\uc0dd\uc77c.<\/p>\n\n<h2>30\uba85 \ucc98\ub9ac \u2014 \ud074\ub798\uc2a4\uc758 \uc9c4\uac00<\/h2>\n\n<pre><code>students = [\n    Student(\"\uc900\uc131\", 88),\n    Student(\"\uc218\ubbfc\", 92),\n    Student(\"\uc9c0\ud6c8\", 65),\n]\n\n# \ud559\uc810 \uc77c\uad04 \ucd9c\ub825\nfor s in students:\n    print(f\"{s.name}: {s.grade()}\")\n# \uc900\uc131: B\n# \uc218\ubbfc: A\n# \uc9c0\ud6c8: F\n\n# \uc815\ub82c \u2014 key \uc778\uc790\ub85c \uba54\uc11c\ub4dc \uacb0\uacfc \uc0ac\uc6a9\nranked = sorted(students, key=lambda s: s.score, reverse=True)\nprint([s.name for s in ranked])\n# ['\uc218\ubbfc', '\uc900\uc131', '\uc9c0\ud6c8']<\/code><\/pre>\n\n<p>\uac19\uc740 \uc77c\uc744 dict \ub85c \ud588\uc744 \ub54c\ubcf4\ub2e4 \ud638\ucd9c\uc774 \ud55c\uacb0 \uc9e7\uace0 \uc758\ubbf8\uac00 \uba85\ud655\ud569\ub2c8\ub2e4 \u2014 <code>s[\"name\"]<\/code> \ubcf4\ub2e4 <code>s.name<\/code> \uc774 \uc9e7\uace0, <code>get_grade(s)<\/code> \ud568\uc218\ubcf4\ub2e4 <code>s.grade()<\/code> \uac00 \uc758\ub3c4\ub97c \ub354 \uc798 \ub4dc\ub7ec\ub0c5\ub2c8\ub2e4.<\/p>\n\n<h3>dataclass \u2014 \uc9e7\uac8c \uc4f0\ub294 \ud604\ub300\uc2dd (3.7+)<\/h3>\n\n<p>\uc18d\uc131\ub9cc \uac16\uace0 \ub3d9\uc791\uc774 \uc801\uc740 \ud074\ub798\uc2a4\ub294 <code>__init__<\/code> \uc801\uae30\uac00 \ubc88\uc7a1\ud569\ub2c8\ub2e4. <code>dataclass<\/code> \ub370\ucf54\ub808\uc774\ud130(17\ud3b8 \uc608\uace0)\uac00 \uc790\ub3d9\uc73c\ub85c \ub9cc\ub4e4\uc5b4\uc918\uc694.<\/p>\n\n<pre><code>from dataclasses import dataclass\n\n@dataclass\nclass Student:\n    name: str\n    score: int\n    school: str = \"JUNAI\"      # \uae30\ubcf8\uac12\ub3c4 OK\n\ns = Student(\"\uc900\uc131\", 88)\nprint(s)                        # Student(name='\uc900\uc131', score=88, school='JUNAI')\ns.name, s.score                 # \ub611\uac19\uc774 \uc811\uadfc<\/code><\/pre>\n\n<p><code>__init__<\/code>\u00b7<code>__repr__<\/code> \uac00 \uc790\ub3d9 \uc0dd\uc131. \uc0ac\uc6a9\uc790 \ud504\ub85c\ud544\u00b7\uc124\uc815\u00b7DB \ud589 \uac19\uc774 <strong>&#8220;\uc8fc\ub85c \ub370\uc774\ud130\ub97c \ub2f4\ub294 \ud074\ub798\uc2a4&#8221;<\/strong> \uc5d0 \ucd5c\uc801\uc785\ub2c8\ub2e4.<\/p>\n\n<div class=\"warnbox\">\n  <strong>\u26a0\ufe0f \ubaa8\ub4e0 \uac8c \ud074\ub798\uc2a4\uc5ec\uc57c \ud558\ub294 \uac74 \uc544\ub2c8\ub2e4.<\/strong> \uc9e7\uc740 \uc2a4\ud06c\ub9bd\ud2b8\ub294 \ud568\uc218\ub9cc\uc73c\ub85c \ucda9\ubd84. \uac19\uc740 \ub370\uc774\ud130\uc5d0 \uc5ec\ub7ec \ub3d9\uc791\uc774 \ubb36\uc774\uac70\ub098, \uac1d\uccb4\ub97c \uc5ec\ub7ec \uac1c \ub9cc\ub4e4\uc5b4 \ube44\uad50\u00b7\uc815\ub82c\ud560 \ub54c \ud074\ub798\uc2a4\uac00 \ube5b\ub0a9\ub2c8\ub2e4. <em>&#8220;\uc660\uc9c0 \uba4b\uc788\uc5b4 \ubcf4\uc5ec\uc11c&#8221;<\/em> \ud074\ub798\uc2a4\ubd80\ud130 \uc9dc\uba74 \ucf54\ub4dc\uac00 \ubb34\uac70\uc6cc\uc838\uc694.\n<\/div>\n\n<h2>\ub9c8\ubb34\ub9ac \u2014 \ud074\ub798\uc2a4\uac00 \ud544\uc694\ud55c 4\uac00\uc9c0 \uc2e0\ud638<\/h2>\n\n<ol>\n  <li>\uac19\uc740 dict \ud0a4 \uc870\ud569\uc744 \ucf54\ub4dc \uc5ec\ub7ec \uacf3\uc5d0\uc11c \ub9cc\uc9c4\ub2e4 (<code>user[\"name\"]\u00b7user[\"age\"]\u00b7user[\"email\"]<\/code>&#8230;)<\/li>\n  <li>\uac19\uc740 \uc778\uc790\ub97c \ubc1b\ub294 \ud568\uc218 3\uac1c \uc774\uc0c1\uc774 \ud55c \uadf8\ub8f9\uc73c\ub85c \ubaa8\uc778\ub2e4<\/li>\n  <li>&#8220;\uc774 \uac1d\uccb4\uc5d0 \ub300\ud574&#8221; \ub77c\ub294 \ud45c\ud604\uc774 \uc790\uc5f0\uc2a4\ub7fd\ub2e4 (<em>&#8220;\uc774 \ud559\uc0dd\uc758 \ud559\uc810&#8221;<\/em>, <em>&#8220;\uc774 \uc8fc\ubb38\uc758 \ud569\uacc4&#8221;<\/em>)<\/li>\n  <li>\uac19\uc740 \ubaa8\uc591\uc758 \uac1d\uccb4\ub97c \uc5ec\ub7ec \uac1c \ub9cc\ub4e4\uc5b4 \ub9ac\uc2a4\ud2b8\ub85c \ub2e4\ub8ec\ub2e4 (\ud559\uc0dd 30\uba85, \uc0c1\ud488 100\uac1c)<\/li>\n<\/ol>\n\n<p>\ub2e4\uc74c \ubbf8\uc158 \u2014 REPL \uc5d0\uc11c: \u2460 <code>Book<\/code> \ud074\ub798\uc2a4 (title\u00b7author\u00b7pages, <code>summary()<\/code> \uba54\uc11c\ub4dc) \u2461 \ucc45 3\uad8c \ub9cc\ub4e4\uc5b4 \ud398\uc774\uc9c0 \uc218 \uae30\uc900 \uc815\ub82c \u2462 <code>dataclass<\/code> \ub85c \uac19\uc740 \uac78 \ub2e4\uc2dc \uc9dc\uace0 \ucf54\ub4dc \uae38\uc774 \ube44\uad50.<\/p>\n\n<div class=\"cta\">\n  <h3>\ub2e4\uc74c \ud3b8 \ubbf8\ub9ac\ubcf4\uae30<\/h3>\n  <p>15\ud3b8 \u2014 &#8220;\ud30c\uc774\uc36c \uc0c1\uc18d super&#8221;: \ud074\ub798\uc2a4\ub97c \ud655\uc7a5\ud558\ub294 \ubc29\ubc95. <code>class Premium(Student)<\/code> \uac19\uc740 \ubd80\ubaa8-\uc790\uc2dd \uad00\uacc4\uc640 <code>super().__init__<\/code>.<\/p>\n<\/div>\n\n<div class=\"series-nav\">\n  <strong>\ud83d\udcda 27\ud3b8 \ud30c\uc774\uc36c \uad50\uc7ac \uc2dc\ub9ac\uc988 \u2014 14\/27\ud3b8<\/strong><br>\n  \u2190 13\ud3b8 &#8220;\ud30c\uc77c \uc77d\uae30\u00b7\uc4f0\uae30&#8221; \u00b7 \ub2e4\uc74c: 15\ud3b8 &#8220;\uc0c1\uc18d\u00b7super&#8221;\n<\/div>\n\n<\/article>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>class\u00b7__init__\u00b7self\u00b7\uba54\uc11c\ub4dc\u00b7\uc18d\uc131\u00b7dataclass \uae4c\uc9c0. \uac1d\uccb4\uc9c0\ud5a5 \uccab\uac78\uc74c. 27\ud3b8 \uad50\uc7ac 14\ud3b8.<\/p>\n","protected":false},"author":1,"featured_media":593,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-227","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/comments?post=227"}],"version-history":[{"count":1,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/227\/revisions"}],"predecessor-version":[{"id":620,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/227\/revisions\/620"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/media\/593"}],"wp:attachment":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/media?parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/categories?post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/tags?post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}