{"id":2182,"date":"2026-09-25T20:02:16","date_gmt":"2026-09-25T11:02:16","guid":{"rendered":"https:\/\/stratos-research.com\/?p=2182"},"modified":"2026-09-25T20:02:16","modified_gmt":"2026-09-25T11:02:16","slug":"python-%e3%81%ae%e5%9f%ba%e6%9c%ac%e3%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%a8%e5%ae%9f%e8%b7%b5%e7%9a%84%e3%81%aa%e4%bd%bf%e3%81%84%e6%96%b9","status":"publish","type":"post","link":"https:\/\/stratos-research.com\/?p=2182","title":{"rendered":"Python \u306e\u57fa\u672c\u30c7\u30fc\u30bf\u578b\u3068\u5b9f\u8df5\u7684\u306a\u4f7f\u3044\u65b9"},"content":{"rendered":"<h2>\u30c7\u30fc\u30bf\u578b\u3068\u306f<\/h2>\n<p>Python \u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3001\u540d\u524d\u3084\u5e74\u9f62\u3001\u4fa1\u683c\u3001\u30ea\u30b9\u30c8\u3001API \u304b\u3089\u53d6\u5f97\u3057\u305f\u60c5\u5831\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u5024\uff08\u30c7\u30fc\u30bf\uff09\u3092\u6271\u3044\u307e\u3059\u3002Python \u304c\u305d\u308c\u3089\u306e\u5024\u306e\u7a2e\u985e\u3092\u8a8d\u8b58\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u300c\u30c7\u30fc\u30bf\u578b\u300d\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h2>\u6570\u5024\u578b\uff08int \u3068 float\uff09<\/h2>\n<p>\u6574\u6570\u306f <code>int<\/code>\u3001\u5c0f\u6570\u70b9\u3092\u542b\u3080\u6570\u306f <code>float<\/code> \u3067\u8868\u3057\u307e\u3059\u3002<\/p>\n<pre><code>age = 45          # int\nprice = 1250.50   # float\nprint(type(age))   # &lt;class 'int'&gt;\nprint(type(price)) # &lt;class 'float'&gt;<\/code><\/pre>\n<p>\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u306f\u5185\u90e8\u8868\u73fe\u306e\u90fd\u5408\u4e0a\u3001\u6b63\u78ba\u306b\u5341\u9032\u6570\u3092\u4fdd\u6301\u3067\u304d\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><code>print(0.1 + 0.2)   # 0.30000000000000004<\/code><\/pre>\n<h2>\u6587\u5b57\u5217\uff08str\uff09<\/h2>\n<p>\u6587\u5b57\u5217\u306f\u6587\u5b57\u306e\u4e26\u3073\u3067\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3084\u30b9\u30e9\u30a4\u30b9\u3067\u90e8\u5206\u53d6\u308a\u51fa\u305b\u307e\u3059\u3002<\/p>\n<pre><code>name = \"Kaila\"\nprint(name)               # Kaila\nprint(type(name))         # &lt;class 'str'&gt;\nlanguage = \"Python\"\nprint(language[0])        # P\nprint(language[0:3])      # Pyt<\/code><\/pre>\n<p>\u6587\u5b57\u5217\u306f\u30a4\u30df\u30e5\u30fc\u30bf\u30d6\u30eb\u306a\u306e\u3067\u3001\u4f5c\u6210\u5f8c\u306b\u76f4\u63a5\u5909\u66f4\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<h2>\u30ea\u30b9\u30c8\uff08list\uff09<\/h2>\n<p>\u8907\u6570\u306e\u5024\u3092\u9806\u5e8f\u4ed8\u304d\u3067\u4fdd\u6301\u3057\u3001\u8981\u7d20\u306e\u8ffd\u52a0\u30fb\u5909\u66f4\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre><code>languages = [\"Python\", \"SQL\", \"Java\"]\nprint(languages)                 # ['Python', 'SQL', 'Java']\nlanguages[1] = \"C++\"; print(languages)  # ['Python', 'C++', 'Java']\nlanguages.append(\"Go\"); print(languages) # ['Python', 'C++', 'Java', 'Go']<\/code><\/pre>\n<h2>\u30bf\u30d7\u30eb\uff08tuple\uff09<\/h2>\n<p>\u8907\u6570\u306e\u5024\u3092\u4fdd\u6301\u3057\u307e\u3059\u304c\u3001\u30a4\u30df\u30e5\u30fc\u30bf\u30d6\u30eb\u3067\u3059\u3002<\/p>\n<pre><code>coordinates = (18.52, 73.85)\nprint(coordinates)   # (18.52, 73.85)<\/code><\/pre>\n<h2>\u8f9e\u66f8\uff08dict\uff09<\/h2>\n<p>\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3067\u30c7\u30fc\u30bf\u3092\u7ba1\u7406\u3057\u307e\u3059\u3002<\/p>\n<pre><code>student = {\n    \"name\": \"Rah\u200bul\",\n    \"age\": 25,\n    \"city\": \"Pune\"\n}\nprint(student[\"name\"])   # Rah\u200bul<\/code><\/pre>\n<h2>\u96c6\u5408\uff08set\uff09<\/h2>\n<p>\u91cd\u8907\u3057\u306a\u3044\u8981\u7d20\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3067\u3059\u3002<\/p>\n<pre><code>numbers = {10, 20, 30, 10, 20}\nprint(numbers)            # {10, 20, 30}\na = {1, 2, 3}\nb = {3, 4, 5}\nprint(a.intersection(b)) # {3}<\/code><\/pre>\n<h2>\u771f\u507d\u5024\uff08bool\uff09<\/h2>\n<p>True \u307e\u305f\u306f False \u3092\u8868\u3057\u307e\u3059\u3002<\/p>\n<pre><code>age = 25\nis_adult = age &gt;= 18\nprint(is_adult)   # True<\/code><\/pre>\n<h2>None<\/h2>\n<p>\u5024\u304c\u5b58\u5728\u3057\u306a\u3044\u3053\u3068\u3092\u793a\u3059\u7279\u5225\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3059\u3002<\/p>\n<pre><code>result = None\nprint(result)       # None\nprint(type(result)) # &lt;class 'NoneType'&gt;<\/code><\/pre>\n<h2>\u578b\u5909\u63db<\/h2>\n<p>\u5165\u529b\u306f\u6587\u5b57\u5217\u3068\u3057\u3066\u53d7\u3051\u53d6\u308b\u306e\u3067\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u6570\u5024\u3078\u5909\u63db\u3057\u307e\u3059\u3002<\/p>\n<pre><code>age_str = input(\"Enter your age: \")\nprint(type(age_str))   # &lt;class 'str'&gt;\nage = int(age_str)\nprint(age + 5)<\/code><\/pre>\n<p>\u5909\u63db\u3067\u304d\u306a\u3044\u6587\u5b57\u5217\u3092\u6570\u5024\u306b\u5909\u63db\u3057\u3088\u3046\u3068\u3059\u308b\u3068 <code>ValueError<\/code> \u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<h2>\u53ef\u5909\u3068\u4e0d\u53ef\u5909\u306e\u30c7\u30fc\u30bf\u578b<\/h2>\n<p>\u53ef\u5909\uff1alist\u3001dict\u3001set<br \/>\u4e0d\u53ef\u5909\uff1aint\u3001float\u3001str\u3001tuple\u3001bool<\/p>\n<pre><code>numbers = [10, 20, 30]\nnumbers.append(40)\nprint(numbers)   # [10, 20, 30, 40]<\/code><\/pre>\n<p>\u6587\u5b57\u5217\u306f\u4e0d\u53ef\u5909\u306a\u306e\u3067\u3001\u8981\u7d20\u306e\u76f4\u63a5\u5909\u66f4\u306f\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u5b9f\u52d9\u4f8b<\/h2>\n<p>\u5f93\u696d\u54e1\u60c5\u5831\u3092\u7ba1\u7406\u3059\u308b\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code>employee_id = 101\nemployee_name = \"Amit\"\nsalary = 55000.50\nis_active = True\nskills = [\"Python\", \"SQL\", \"Power BI\"]\nemployee = {\n    \"id\": employee_id,\n    \"name\": employee_name,\n    \"salary\": salary,\n    \"active\": is_active,\n    \"skills\": skills\n}\nprint(employee)<\/code><\/pre>\n<h2>\u30c7\u30fc\u30bf\u578b\u306e\u91cd\u8981\u6027<\/h2>\n<p>API \u3084\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3067\u306f\u3001\u671f\u5f85\u3059\u308b\u578b\u3068\u7570\u306a\u308b\u5f62\u5f0f\u3067\u5024\u304c\u63d0\u4f9b\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u578b\u3092\u628a\u63e1\u3057\u9069\u5207\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u304c\u30c7\u30fc\u30bf\u51e6\u7406\u306e\u9375\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u307e\u305a\u899a\u3048\u308b\u3079\u304d\u4e3b\u8981\u306a\u30c7\u30fc\u30bf\u578b\u306f\u3001int\u3001float\u3001str\u3001bool\u3001list\u3001tuple\u3001set\u3001dict\u3001None \u3067\u3059\u3002\u5404\u578b\u306e\u53ef\u5909\u6027\u3001\u30a2\u30af\u30bb\u30b9\u65b9\u6cd5\u3001\u5909\u63db\u65b9\u6cd5\u3092\u7406\u89e3\u3057\u3001\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3067\u8a66\u3059\u3053\u3068\u3067\u3001\u95a2\u6570\u3084 API\u3001Pandas \u306a\u3069\u306e\u9ad8\u5ea6\u306a\u30c8\u30d4\u30c3\u30af\u3082\u30b9\u30e0\u30fc\u30ba\u306b\u5b66\u3079\u307e\u3059\u3002<\/p>\n<p class=\"source-link\">\u5143\u8a18\u4e8b: <a href=\"https:\/\/dev.to\/kailas_warade_d2a15d1ef8a\/python-data-types-explained-with-practical-examples-51m4\" rel=\"noopener noreferrer\">https:\/\/dev.to\/kailas_warade_d2a15d1ef8a\/python-data-types-explained-with-practical-examples-51m4<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c7\u30fc\u30bf\u578b\u3068\u306f Python \u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3001 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":2183,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_spp_pexels_query":"","_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[3],"tags":[],"class_list":["post-2182","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-business"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/stratos-research.com\/wp-content\/uploads\/2026\/09\/painted-2181-RpnJd2.webp","_links":{"self":[{"href":"https:\/\/stratos-research.com\/index.php?rest_route=\/wp\/v2\/posts\/2182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stratos-research.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stratos-research.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stratos-research.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/stratos-research.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2182"}],"version-history":[{"count":0,"href":"https:\/\/stratos-research.com\/index.php?rest_route=\/wp\/v2\/posts\/2182\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stratos-research.com\/index.php?rest_route=\/wp\/v2\/media\/2183"}],"wp:attachment":[{"href":"https:\/\/stratos-research.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stratos-research.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stratos-research.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}