{"id":1025,"date":"2018-08-27T14:19:03","date_gmt":"2018-08-27T05:19:03","guid":{"rendered":"https:\/\/python-introduction.com\/?p=1025"},"modified":"2018-08-27T14:19:03","modified_gmt":"2018-08-27T05:19:03","slug":"%e3%80%90python%e5%85%a5%e9%96%80%e3%80%91%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%a8%e3%81%af%ef%bc%9f%e3%82%8f%e3%81%8b%e3%82%8a%e3%82%84%e3%81%99%e3%81%8f%e8%a7%a3%e8%aa%ac%e3%81%97%e3%81%be","status":"publish","type":"post","link":"https:\/\/python-introduction.com\/?p=1025","title":{"rendered":"\u3010Python\u5165\u9580\u3011\u30e1\u30bd\u30c3\u30c9\u3068\u306f\uff1f\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059"},"content":{"rendered":"<p>\u524d\u56de\u306e\u8a18\u4e8b\u3067\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306b\u3064\u3044\u3066<br \/>\n\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306e\u8a18\u4e8b\u3092\u307e\u3060\u3054\u89a7\u3067\u306a\u3044\u65b9\u306f<br \/>\n\u5148\u306b\u3001\u3053\u3061\u3089\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<br \/>\n\u21d2<a href=\"https:\/\/python-introduction.com\/?p=1017\" target=\"blank\">\u3010Python\u5165\u9580\u3011\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3068\u306f\uff1f\u4f8b\u984c\u3092\u6319\u3052\u306a\u304c\u3089\u89e3\u8aac<\/a><\/p>\n<p>\u4eca\u56de\u89e3\u8aac\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u306f<br \/>\n\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306b\u3064\u3044\u3066\u306e\u7406\u89e3\u304c\u306a\u3044\u3068<br \/>\n\u5168\u4f53\u50cf\u304c\u628a\u63e1\u3057\u306b\u304f\u3044\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u7c21\u5358\u306b\u8aac\u660e\u3057\u3066\u304a\u304d\u307e\u3059\u306d\u3002<br \/>\n\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3068\u3044\u3046\u8003\u3048\u65b9\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u30fb\u30fb\u30fb<\/p>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4e2d\u306b<br \/>\n\u30af\u30e9\u30b9\u3068\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u3042\u3063\u3066\u3001<br \/>\n\u305d\u306e\u30af\u30e9\u30b9\u306e\u4e2d\u306b\u30e1\u30bd\u30c3\u30c9\u3068\u3044\u3046\u3082\u306e\u3092\u5165\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3093\u3067\u3059\u3002<\/p>\n<p>\u524d\u56de\u306e\u8a18\u4e8b\u3067\u306f\u5b9f\u969b\u306b\u4f8b\u984c\u3092\u4f7f\u3063\u3066<br \/>\n\u30af\u30e9\u30b9\u306e\u4e2d\u306b\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3059\u308b\u7df4\u7fd2\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u21d2<a href=\"https:\/\/python-introduction.com\/?p=1017\" target=\"blank\">\u3010Python\u5165\u9580\u3011\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3068\u306f\uff1f\u4f8b\u984c\u3092\u6319\u3052\u306a\u304c\u3089\u89e3\u8aac<\/a><\/p>\n<p>\u305d\u308c\u3067\u306f\u3053\u3053\u304b\u3089\u304c\u672c\u984c\u3067\u3059\u3002<\/p>\n<p>\u30af\u30e9\u30b9\u306e\u4e2d\u306b\u5b9f\u88c5\u3067\u304d\u308b\u30e1\u30bd\u30c3\u30c9\u3068\u306f<br \/>\n\u3069\u3046\u3044\u3046\u3082\u306e\u306a\u306e\u3067\u3057\u3087\u3046\uff1f<\/p>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#Python\"><span class=\"toc_number toc_depth_1\">1<\/span> \u3010Python\u5165\u9580\u3011\u30af\u30e9\u30b9\u306e\u4e2d\u306b\u5b9f\u88c5\u3067\u304d\u308b\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066\u4f8b\u984c\u3092\u6319\u3052\u3066\u89e3\u8aac<\/a><\/li><li><a href=\"#Python-2\"><span class=\"toc_number toc_depth_1\">2<\/span> \u3010Python\u5165\u9580\u3011\u7d50\u5c40\u306e\u3068\u3053\u308d\u30e1\u30bd\u30c3\u30c9\u3068\u306f\u3069\u3046\u3044\u3046\u3053\u3068\uff1f<\/a><\/li><li><a href=\"#Pythonself\"><span class=\"toc_number toc_depth_1\">3<\/span> \u3010Python\u3011self\u3092\u4f7f\u3063\u3066\u30e1\u30bd\u30c3\u30c9\u306e\u4e2d\u304b\u3089\u4ed6\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u3066\u307f\u308b<\/a><\/li><\/ul><\/div>\n<h2><span id=\"Python\">\u3010Python\u5165\u9580\u3011\u30af\u30e9\u30b9\u306e\u4e2d\u306b\u5b9f\u88c5\u3067\u304d\u308b\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066\u4f8b\u984c\u3092\u6319\u3052\u3066\u89e3\u8aac<\/span><\/h2>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/pasokonol822.jpg\" alt=\"\u30e1\u30bd\u30c3\u30c9\u3068\u306f\" width=\"620\" height=\"414\" class=\"alignnone size-full wp-image-913\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/pasokonol822.jpg 620w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/pasokonol822-300x200.jpg 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><br \/>\n\u8a18\u4e8b\u5192\u982d\u3067\u3082\u8a00\u3044\u307e\u3057\u305f\u304c\u3001<br \/>\n\u30e1\u30bd\u30c3\u30c9\u306f\u30af\u30e9\u30b9\u306e\u4e2d\u306b\u5165\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u984c\u3092\u5b9f\u884c\u3057\u306a\u304c\u3089\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u306d\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">#\u4f8b\u984c1\r\n\r\nclass Pet: #\u3053\u3053\u306f\u30af\u30e9\u30b9\r\n    def tiwawa(self): # \u3053\u3053\u306f\u30e1\u30bd\u30c3\u30c9\r\n        print('\u30c1\u30ef\u30ef\u3060\u30ef\u30f3\uff01')\r\n        \r\nx = Pet() # x\u306f\u30af\u30e9\u30b9\u304b\u3089\u3067\u304d\u305f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\r\nx.tiwawa() <\/pre>\n<p>\u4f8b\u984c1\u3067\u3001<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">class Pet:<\/pre>\n<p>\u3067\u3059\u304c\u3001\u3053\u3053\u306f\u30af\u30e9\u30b9\u540d\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nPet\u3068\u3044\u3046\u30af\u30e9\u30b9\u540d\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b21\u306b<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">    def tiwawa(self): # \u3053\u3053\u306f\u30e1\u30bd\u30c3\u30c9\r\n        print('\u30c1\u30ef\u30ef\u3060\u30ef\u30f3\uff01')<\/pre>\n<p>\u30af\u30e9\u30b9Pet\u306e\u4e2d\u306b<br \/>\ntiwawa\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3057\u307e\u3057\u305f\u3002<br \/>\ntiwawa\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u306f\u300e\u30c1\u30ef\u30ef\u3060\u30ef\u30f3\uff01\u300f\u3068\u8868\u793a\u3055\u305b\u308b\u3068\u3044\u3046<br \/>\n\u3082\u306e\u3059\u3054\u304f\u5358\u7d14\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u3067\u3001tiwawa\u304c\u30e1\u30bd\u30c3\u30c9\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u305f\u5834\u5408\u306b\u306f<br \/>\n\uff08\uff09\u306e\u4e2d\u306bself\u3068\u66f8\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">tiwawa(self)<\/pre>\n<p>\u3068\u30e1\u30bd\u30c3\u30c9\u306e\u5834\u5408\u306b\u306f\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p>\u95a2\u6570\u3092\u52c9\u5f37\u3057\u305f\u3053\u3068\u304c\u3042\u308b\u306a\u3089\u308f\u304b\u3063\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001<br \/>\ntiwawa\u30e1\u30bd\u30c3\u30c9\u306e\u524d\u306edef\u304c\u3042\u308b\u3068<br \/>\n\u3069\u3046\u3057\u3066\u3082tiwawa\u304c\u95a2\u6570\u306e\u3088\u3046\u306b\u611f\u3058\u3066\u3057\u307e\u3046\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\u3082\u3001tiwawa(self)\u3068self\u304c\u3042\u308b\u3053\u3068\u3067<br \/>\n\u300c\u3042\u3001\u3053\u308c\u306f\u95a2\u6570\u3067\u306a\u304f\u3001\u30e1\u30bd\u30c3\u30c9\u306a\u3093\u3060\u306a\u300d<br \/>\n\u3068\u8ab0\u304c\u307f\u3066\u3082\u308f\u304b\u308b\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u95a2\u6570\u3068\u304bdef\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u21d2<a href=\"https:\/\/python-introduction.com\/?p=879\" target=\"blank\">https:\/\/python-introduction.com\/?p=879<\/a><\/p>\n<p>\u6b21\u306b<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">x = Pet()<\/pre>\n<p>\u3068Pet\u3068\u3044\u3046\u30af\u30e9\u30b9\u306b()\u3092\u3064\u3051\u308b\u3053\u3068\u3067<br \/>\n\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u304b\u3089\u3001Pet()\u3068\u3044\u3046\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u5909\u6570x\u306b\u4ee3\u5165\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u5909\u6570\u306e\u4ee3\u5165\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u21d2<a href=\"https:\/\/python-introduction.com\/?p=416\" target=\"blank\">\u3010Python\u5165\u9580\u3011\u5909\u6570\u306e\u4ee3\u5165\u306b\u3064\u3044\u3066\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac<\/a><\/p>\n<p>\u305d\u3057\u3066<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">x.tiwawa() <\/pre>\n<p>\u5909\u6570x\u306b\u4ee3\u5165\u3055\u308c\u305f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304b\u3089tiwawa\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u3001\u300e\u30c1\u30ef\u30ef\u3060\u30ef\u30f3\uff01\u300f\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/mesoddosa825.jpg\" alt=\"\u30e1\u30bd\u30c3\u30c9\" width=\"354\" height=\"190\" class=\"alignnone size-full wp-image-1029\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/mesoddosa825.jpg 354w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/mesoddosa825-300x161.jpg 300w\" sizes=\"(max-width: 354px) 100vw, 354px\" \/><\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u3001\u751f\u6210\u3055\u308c\u305f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u3088\u3063\u3066\u30e1\u30bd\u30c3\u30c9\u304c\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002<br \/>\n\u3067\u3001tiwawa(self)\u3068self\u304c\u3042\u308b\u3053\u3068\u3067\u3001\u3053\u306eself\u304c\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u81ea\u8eab\u3092<br \/>\n\u610f\u5473\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>self\u3063\u3066\u82f1\u8a9e\u3067\u81ea\u5206\u81ea\u8eab\u3092\u610f\u5473\u3057\u307e\u3059\u304b\u3089\u306d\u3002<\/p>\n<p>\u300c\u3069\u3046\u3057\u3066self\u3063\u3066\u66f8\u304f\u306e\uff1f\u300d<br \/>\n\u3068\u601d\u3063\u305f\u65b9\u3082\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u305f\u3060\u3001\u3053\u308c\u3063\u3066Python\u306e\u30eb\u30fc\u30eb\u306a\u3093\u3067\u3059\u3002<br \/>\nPEP 8\u3068\u3044\u3046Python\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u898f\u7d04\u3067\u5b9a\u3081\u3089\u308c\u3066\u3044\u308b\u3093\u3067\u3059\u3002<br \/>\n\u21d2<a href=\"https:\/\/www.python.org\/dev\/peps\/pep-0008\/#function-and-method-arguments\" target=\"blank\">PEP 8\u306f\u3053\u3061\u3089<\/a><\/p>\n<p>\u306a\u306e\u3067\u3001\u5358\u7d14\u306b<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">tiwawa(self)<\/pre>\n<p>\u3068\u66f8\u304f\u3082\u306e\u306a\u3093\u3060\u3068\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2><span id=\"Python-2\">\u3010Python\u5165\u9580\u3011\u7d50\u5c40\u306e\u3068\u3053\u308d\u30e1\u30bd\u30c3\u30c9\u3068\u306f\u3069\u3046\u3044\u3046\u3053\u3068\uff1f<\/span><\/h2>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/sensei12221.jpg\" alt=\"\u30e1\u30bd\u30c3\u30c9\" width=\"620\" height=\"414\" class=\"alignnone size-full wp-image-927\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/sensei12221.jpg 620w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/sensei12221-300x200.jpg 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/p>\n<p>\u7e70\u308a\u8fd4\u3057\u306b\u306a\u308a\u307e\u3059\u304c\u3001<br \/>\n\u30e1\u30bd\u30c3\u30c9\u306f\u30af\u30e9\u30b9\u306b\u5c5e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u3001\u5c5e\u3057\u3066\u3044\u308b\u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066<br \/>\n\u52d5\u304d\u3092\u307f\u305b\u308b\u3082\u306e\u304c\u30e1\u30bd\u30c3\u30c9\u3068\u3044\u3048\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u4f8b\u984c1\u3067\u306f<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">def tiwawa(self): # \u3053\u3053\u306f\u30e1\u30bd\u30c3\u30c9\r\n        print('\u30c1\u30ef\u30ef\u3060\u30ef\u30f3\uff01')<\/pre>\n<p>\u3068\u3001tiwawa\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u306f\u300e\u30c1\u30ef\u30ef\u3060\u30ef\u30f3\uff01\u300f<br \/>\n\u3068\u8868\u793a\u3055\u305b\u308b\u3068\u3044\u3046\u52d5\u304d\u3092\u3082\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u30af\u30e9\u30b9\u5185\u3067\u3001\u95a2\u6570\u307f\u305f\u3044\u306a\u52d5\u304d\u3092\u898b\u305b\u308b\u3082\u306e\u3092<br \/>\n\u30e1\u30bd\u30c3\u30c9\u3068\u3044\u3046\u3068\u3044\u3046\u7406\u89e3\u3067\u5341\u5206\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2><span id=\"Pythonself\">\u3010Python\u3011self\u3092\u4f7f\u3063\u3066\u30e1\u30bd\u30c3\u30c9\u306e\u4e2d\u304b\u3089\u4ed6\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u3066\u307f\u308b<\/span><\/h2>\n<p>\u30e1\u30bd\u30c3\u30c9\u306e\u5834\u5408\u3001()\u5185\u306bself\u3068\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">tiwawa(self)<\/pre>\n<p>\u3068\u3044\u3063\u305f\u611f\u3058\u3067\u3059\u306d\u3002<\/p>\n<p>\u3067\u306f\u4f8b\u984c2\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">#\u4f8b\u984c2\r\n\r\nclass Pet: #\u3053\u3053\u306f\u30af\u30e9\u30b9\r\n    def tiwawa(self): # \u3053\u3053\u306f\u30e1\u30bd\u30c3\u30c9\r\n        self.dachs() #\u3053\u3053\u306eself\u306f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3002\r\n        print('\u30c1\u30ef\u30ef\u3060\u30ef\u30f3\uff01')\r\n        \r\n    def dachs(self):\r\n         print('\u30c0\u30c3\u30af\u30b9\u3060\u30ef\u30f3\uff01')\r\n        \r\nx = Pet() # x\u306f\u30af\u30e9\u30b9\u304b\u3089\u3067\u304d\u305f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\r\nx.tiwawa()<\/pre>\n<p>\u4f8b\u984c2\u3067<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">class Pet: #\u3053\u3053\u306f\u30af\u30e9\u30b9<\/pre>\n<p>Pet\u3068\u3044\u3046\u30af\u30e9\u30b9\u3092\u4f5c\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u304b\u3089<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">def tiwawa(self):<\/pre>\n<p>tiwawa\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u3068<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">def dachs(self):<\/pre>\n<p>dachs\u3068\u3044\u30462\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">def dachs(self):<\/pre>\n<p>\u306e\u65b9\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u300e\u30c0\u30c3\u30af\u30b9\u3060\u30ef\u30f3\uff01\u300f<br \/>\n\u3068\u8868\u793a\u3055\u305b\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u5bfe\u3057\u3066<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">   def tiwawa(self): # \u3053\u3053\u306f\u30e1\u30bd\u30c3\u30c9\r\n        self.dachs() #\u3053\u3053\u306eself\u306f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3002\r\n        print('\u30c1\u30ef\u30ef\u3060\u30ef\u30f3\uff01')<\/pre>\n<p>tiwawa\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u306f<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"> self.dachs()<\/pre>\n<p>self\u3092\u4f7f\u3063\u3066dachs\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306eself\u306f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u81ea\u8eab\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u306a\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304b\u3089\u4ed6\u306e\u30e1\u30bd\u30c3\u30c9\u3001\u3053\u3053\u3067\u306fdachs\u30e1\u30bd\u30c3\u30c9\u3092<br \/>\n\u547c\u3073\u51fa\u3059\u3068\u3044\u3046\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\u3001\u305d\u306e\u3042\u3068\u306b\u300e\u30c1\u30ef\u30ef\u3060\u30ef\u30f3\uff01\u300f<br \/>\n\u3068\u8868\u793a\u3055\u305b\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u304b\u3089<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">x = Pet() # x\u306f\u30af\u30e9\u30b9\u304b\u3089\u3067\u304d\u305f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\r\nx.tiwawa()<\/pre>\n<p>Pet\u3068\u3044\u3046\u30af\u30e9\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u308a<br \/>\n\u5909\u6570x\u306b\u4ee3\u5165\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066tiwawa\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u5b9f\u884c\u3059\u308b\u3068<br \/>\n\u300e\u30c0\u30c3\u30af\u30b9\u3060\u30ef\u30f3\uff01<br \/>\n\u30c1\u30ef\u30ef\u3060\u30ef\u30f3\uff01\u300f<br \/>\n\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/meho825.jpg\" alt=\"\u30e1\u30bd\u30c3\u30c9\" width=\"366\" height=\"268\" class=\"alignnone size-full wp-image-1033\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/meho825.jpg 366w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/meho825-300x220.jpg 300w\" sizes=\"(max-width: 366px) 100vw, 366px\" \/><\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067self\u3092\u4f7f\u3046\u3053\u3068\u3067<br \/>\n\u30e1\u30bd\u30c3\u30c9\u304b\u3089\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u4ee5\u4e0a\u3067\u89e3\u8aac\u3092\u7d42\u308f\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u524d\u56de\u306e\u8a18\u4e8b\u3067\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306b\u3064\u3044\u3066 \u89e3\u8aac\u3057\u307e\u3057\u305f\u3002 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306e\u8a18\u4e8b\u3092\u307e\u3060\u3054\u89a7\u3067\u306a\u3044\u65b9\u306f \u5148\u306b\u3001\u3053\u3061\u3089\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002 \u21d2\u3010Python\u5165\u9580\u3011\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3068\u306f\uff1f\u4f8b\u984c\u3092\u6319\u3052\u306a\u304c\u3089\u89e3\u8aac \u4eca\u56de\u89e3\u8aac\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u306f  [&hellip;]","protected":false},"author":1,"featured_media":1026,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,67],"tags":[3,93],"_links":{"self":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/1025"}],"collection":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1025"}],"version-history":[{"count":6,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/1025\/revisions"}],"predecessor-version":[{"id":1034,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/1025\/revisions\/1034"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/media\/1026"}],"wp:attachment":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}