{"id":1532,"date":"2022-01-22T18:10:11","date_gmt":"2022-01-22T09:10:11","guid":{"rendered":"https:\/\/aiacademy.jp\/media\/?p=1532"},"modified":"2025-06-02T12:48:31","modified_gmt":"2025-06-02T03:48:31","slug":"%e3%80%90%e5%88%9d%e5%bf%83%e8%80%85%e5%90%91%e3%81%91%e3%80%91python-f%e6%96%87%e5%ad%97%e5%88%97%ef%bc%88f-strings%ef%bc%89%e3%81%a8%e3%81%af%e4%bd%95%e3%81%8b%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/aiacademy.jp\/media\/?p=1532","title":{"rendered":"\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011Python f\u6587\u5b57\u5217\uff08f-strings\uff09\u3068\u306f\u4f55\u304b\uff1f"},"content":{"rendered":"\n<p>Python\u306b\u306ff\u6587\u5b57\u5217\uff08f-strings\u3001\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u6e08\u307f\u6587\u5b57\u5217\u30ea\u30c6\u30e9\u30eb\uff09\u3092\u7528\u3044\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u77ed\u3044\u8a18\u6cd5\u3067\u6587\u5b57\u5217\u3092\u57cb\u3081\u8fbc\u3080\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u5f93\u6765\u3067\u306f\u3001\u6587\u5b57\u5217\u30e1\u30bd\u30c3\u30c9<code>format()<\/code>\u3092\u7528\u3044\u308b\u3053\u3068\u304c\u4e00\u822c\u7684\u3067\u3057\u305f\u304c\u3001Python3.6\u304b\u3089f\u6587\u5b57\u5217\u304c\u5c0e\u5165\u3055\u308c\u305f\u305f\u3081\u3001\u6700\u65b0\u306ePython\u74b0\u5883\u306e\u5834\u5408\u306ff\u6587\u5b57\u5217\u3092\u4f7f\u3046\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002Python 2.7\u30843.5\u306a\u3069\u3001\u4ee5\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3001<code>.format()<\/code>\u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>f\u6587\u5b57\u5217\u306f\u3001\u6587\u5b57\u5217\u306e\u524d\u306b<code>f<\/code>\u3082\u3057\u304f\u306f\u5927\u6587\u5b57\u306e<code>F<\/code>\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f8b\uff1af\u2019\u6587\u5b57\u5217\u2019 \u3082\u3057\u304f\u306f F\u2019\u6587\u5b57\u5217\u2019 <\/p>\n\n\n\n<p>\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u57cb\u3081\u8fbc\u3080\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>a = \"f\u6587\u5b57\u5217\u3092\u4f7f\u3063\u3066\u57cb\u3081\u8fbc\u3080\"\nprint(f\"{a}\")<\/code><\/pre>\n\n\n\n<p><strong>\u51fa\u529b\u7d50\u679c<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>f\u6587\u5b57\u5217\u3092\u4f7f\u3063\u3066\u57cb\u3081\u8fbc\u3080<\/code><\/pre>\n\n\n\n<p><span class=\"keiko_green\">\u3053\u306e\u30b5\u30a4\u30c8\u306f\u3001Python\u3084\u751f\u6210AI\u306a\u3069\u3092\u5b66\u3079\u308b\u30aa\u30f3\u30e9\u30a4\u30f3\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb AI Academy Bootcamp\u304c\u904b\u55b6\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n\n\n\n<div class=\"toc\">    <div id=\"toc_container\" class=\"sgb-toc--no-bullets js-smooth-scroll\" data-dialog-title=\"Table of Contents\">\n      <p class=\"toc_title\">\u76ee\u6b21 <\/p>\n      <ul class=\"toc_list\">  <li class=\"first\">    <span><\/span>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-0\">f\u6587\u5b57\u5217\uff08f-strings\uff09\u3068.format()\u30e1\u30bd\u30c3\u30c9\u306e\u66f8\u5f0f\u306e\u9055\u3044<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-1\">\u3010\u7121\u6599\u52d5\u753b\uff1a\u500d\u901f\u3067\u5b66\u3076\uff01\u751f\u6210AI\u3092\u6d3b\u7528\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u52c9\u5f37\u6cd5\uff08\u77ed\u7e2e\u7248\uff09\u3011<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-2\">\u305d\u306e\u4ed6\u306e\u66f8\u5f0f\u6307\u5b9a<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-3\">\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6841\u6570\u306e\u6271\u3044<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-4\">\uff05\u8868\u8a18<\/a>      <\/li>    <\/ul>  <\/li>  <li class=\"last\">    <a href=\"#i-4\">\u2728AI\u4eba\u6750\u30b3\u30fc\u30b9 \u53d7\u8b1b\u304a\u7533\u8fbc\u307f\u53d7\u4ed8\u4e2d\uff01<\/a>  <\/li><\/ul>\n      \n    <\/div><\/div><div class=\"toc\"><p><\/p>\n<\/div><h2 class=\"wp-block-heading\" id=\"i-0\">f\u6587\u5b57\u5217\uff08f-strings\uff09\u3068<code>.format()<\/code>\u30e1\u30bd\u30c3\u30c9\u306e\u66f8\u5f0f\u306e\u9055\u3044<\/h2>\n\n\n\n<p><strong>f-string<\/strong>s \u3092\u7528\u3044\u305f\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Python\"\nprint(f\"Hello, {name}\") # Hello, Python<\/code><\/pre>\n\n\n\n<p><strong><code>.format()<\/code>\u30e1\u30bd\u30c3\u30c9<\/strong> \u3092\u7528\u3044\u305f\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>name = \"Python\"\nprint(\"Hello, {}\".format(name)) # Hello, Python<\/code><\/pre>\n\n\n\n<p>\u305d\u308c\u305e\u308c\u306e\u6700\u5927\u306e\u9055\u3044\u306f\u3001f-string\u304c\u5909\u6570\u540d\u3092\u76f4\u63a5\u6587\u5b57\u5217\u5185\u306b\u57cb\u3081\u8fbc\u3080\u306e\u306b\u5bfe\u3057\u3001<code>format()<\/code>\u30e1\u30bd\u30c3\u30c9\u306f\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u3092\u4f7f\u7528\u3057\u3066\u5f8c\u304b\u3089\u5909\u6570\u3092\u57cb\u3081\u8fbc\u3080\u70b9\u3067\u3059\u3002\u307e\u305f\u3001Python\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c3.6\u4ee5\u524d\u306a\u3069\u306e\u5834\u5408f-string\u304c\u4f7f\u3048\u307e\u305b\u3093\u3002\u305d\u306e\u5834\u5408\u3001<code>format()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u3089\u3092\u610f\u8b58\u3057\u3066\u4f7f\u3044\u5206\u3051\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-1\">\u3010\u7121\u6599\u52d5\u753b\uff1a<strong>\u500d\u901f\u3067\u5b66\u3076\uff01\u751f\u6210AI\u3092\u6d3b\u7528\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u52c9\u5f37\u6cd5\uff08\u77ed\u7e2e\u7248\uff09\u3011<\/strong><\/h2>\n\n\n\n<p>\u751f\u6210AI\u3092\u6d3b\u7528\u3057\u3066\u52b9\u7387\u7684\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3076\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002\u751f\u6210AI\u306e\u57fa\u672c\u7684\u306a\u4ed5\u7d44\u307f\u3084\u52b9\u679c\u7684\u306a\u6d3b\u7528\u6cd5\u3001\u6ce8\u610f\u70b9\u306b\u3064\u3044\u3066\u3082\u8a73\u3057\u304f\u8aac\u660e\u3002\u52c9\u5f37\u6cd5\u3068\u3068\u3082\u306b\u751f\u6210AI\u305d\u306e\u3082\u306e\u306b\u3064\u3044\u3066\u3082\u5b66\u3079\u308b\u5185\u5bb9\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u305c\u3072\u3054\u89a7\u304f\u3060\u3055\u3044\uff01<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-vimeo wp-block-embed-vimeo wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" src=\"https:\/\/player.vimeo.com\/video\/1069835048?h=e43b17d6de&amp;dnt=1&amp;app_id=122963\" width=\"880\" height=\"495\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><strong>\u5168\u7de8\u306f\u3001AI Academy\u516c\u5f0fLINE\u3067\u914d\u4fe1\u4e2d\u3067\u3059\u3002<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/lin.ee\/3E4GzWk\" rel=\"nofollow noopener\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" width=\"910\" height=\"517\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2019\/11\/LINE_Buttom.png\" alt=\"\" class=\"wp-image-6799\" style=\"width:158px;height:auto\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2019\/11\/LINE_Buttom.png 910w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2019\/11\/LINE_Buttom-300x170.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2019\/11\/LINE_Buttom-768x436.png 768w\" sizes=\"auto, (max-width: 910px) 100vw, 910px\"><\/a><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-2\">\u305d\u306e\u4ed6\u306e\u66f8\u5f0f\u6307\u5b9a<\/h1>\n\n\n\n<p>f\u6587\u5b57\u5217\uff08f-strings\uff09\u3067\u306f\u3001<code>{}\u5185\u306e:<\/code>\u306e\u5f8c\u308d\u306b\u66f8\u5f0f\u6307\u5b9a\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u69d8\u3005\u306a\u66f8\u5f0f\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6841\u6570\u306e\u6271\u3044\u3068\uff05\u8868\u8a18\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-3\"><meta charset=\"utf-8\">\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6841\u6570\u306e\u6271\u3044<\/h2>\n\n\n\n<p>\u307e\u305a\u306f\u3058\u3081\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>x = 1234567.89\nprint(f\"{x:.2f}\") # 1234567.89<\/code><\/pre>\n\n\n\n<p>\u4e00\u756a\u5de6\u5074\u306e<code>f<\/code>\u306f\u3001\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u6e08\u307f\u6587\u5b57\u5217\u30ea\u30c6\u30e9\u30eb\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u6587\u5b57\u5217\u5185\u306e\u6ce2\u62ec\u5f27<code> {}<\/code> \u5185\u306b\u5909\u6570\u3084\u5f0f\u3092\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002<br><code>{x:.2f}<\/code>\u306e\u90e8\u5206\u3067\u306f\u3001\u5909\u6570x\u306e\u5024\u3092\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\uff08\u5c0f\u6570\u70b9\u4ee5\u4e0b2\u6841\uff09\u3067\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u306a\u304a<meta charset=\"utf-8\"><code>{x:.3f}<\/code>\u306e\u5834\u5408\u306f\u3001\u5909\u6570x\u306e\u5024\u3092\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\uff08\u5c0f\u6570\u70b9\u4ee5\u4e0b3\u6841\uff09\u3067\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u6307\u5b9a\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<br><br><code>:<\/code>\u306f\u3001\u66f8\u5f0f\u6307\u5b9a\u5b50\u3092\u958b\u59cb\u3057\u307e\u3059\u3002<br><strong>\u66f8\u5f0f\u6307\u5b9a\u5b50\u306f\u3001\u6ce2\u62ec\u5f27\u5185\u306e\u5909\u6570\u540d\u307e\u305f\u306f\u5f0f\u306e\u76f4\u5f8c\u306b\u914d\u7f6e\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u8868\u793a\u3055\u308c\u308b\u5024\u306e\u5e45\u3084\u57cb\u3081\u8fbc\u307f\u6587\u5b57\u3001\u6570\u5024\u306e\u8868\u793a\u5f62\u5f0f\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/p>\n\n\n\n<p><code>.2f<\/code>\u306f\u3001\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u3068\u3057\u3066\u8868\u793a\u3057\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6841\u6570\u30922\u6841\u306b\u5236\u9650\u3059\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e0a\u8a18\u3088\u308a\u3001<meta charset=\"utf-8\">1234567.89\u304c\u305d\u306e\u307e\u307e\u51fa\u529b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u4f8b\u3067\u3082\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>x = 1234567.89\nprint(f\"{x:.0f}\") # 1234568\nprint(f\"{x:.1f}\") # 1234567.9<\/code><\/pre>\n\n\n\n<p>\u307e\u305a<code>print(f\"{x:.0f}\")<\/code>\u3067\u3059\u304c\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6841\u6570\u30920\u306b\u5236\u9650\u3059\u308b\u305f\u3081\u30011234567.89 \u306e\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u898b\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u90e8\u5206\u306f .89 \u3067\u3059\u3002.89 \u3092\u56db\u6368\u4e94\u5165\u3059\u308b\u3068 1 \u306b\u306a\u308a\u307e\u3059\u3002<br>\u5f8c\u306b\u3001\u5143\u306e\u6574\u6570\u90e8\u5206\u3068\u56db\u6368\u4e94\u5165\u3057\u305f\u5c0f\u6570\u90e8\u5206\u3092\u7d50\u5408\u3057\u307e\u3059\u3002\u6574\u6570\u90e8\u5206\u306f 1234567 \u3067\u3001\u56db\u6368\u4e94\u5165\u3057\u305f\u5c0f\u6570\u90e8\u5206\u306f 1 \u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u7d50\u679c\u306f 1234567 + 1 = 1234568 \u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3088\u3063\u3066\u3001\u4ee5\u4e0a\u306e\u624b\u9806\u306b\u3088\u308a\u3001<code>print(f\"{x:.0f}\")<\/code>\u306e\u51fa\u529b\u7d50\u679c\u306f1234568\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><code>print(f\"{x:.1f}\") <\/code>\u306e\u5834\u5408\u3082\u540c\u69d8\u3067\u3059\u3002<br>\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6841\u6570\u30921\u306b\u5236\u9650\u3059\u308b\u305f\u3081\u30011234567.89 \u306e\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u898b\u307e\u3059\u3002<br>\u3053\u306e\u5834\u5408\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u90e8\u5206\u306f .89 \u3067\u3059\u3002<br>\u5c0f\u6570\u70b9\u4ee5\u4e0b\u306e\u6700\u521d\u306e\u6841\u3092\u56db\u6368\u4e94\u5165\u3059\u308b\u305f\u3081\u3001\u6b21\u306e\u6841\u3092\u898b\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u6b21\u306e\u6841\u306f 9 \u3067\u3059\u3002<br>9 \u306f5\u4ee5\u4e0a\u306a\u306e\u3067\u3001\u6700\u521d\u306e\u6841\uff08\u3053\u306e\u5834\u5408\u306f 8\uff09\u30921\u5897\u3084\u3057\u307e\u3059\u3002<br>\u305d\u306e\u305f\u3081\u3001.89 \u3092\u56db\u6368\u4e94\u5165\u3059\u308b\u3068 0.9 \u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6700\u5f8c\u306b\u3001\u5143\u306e\u6574\u6570\u90e8\u5206\u3068\u56db\u6368\u4e94\u5165\u3057\u305f\u5c0f\u6570\u90e8\u5206\u3092\u7d50\u5408\u3057\u307e\u3059\u3002\u6574\u6570\u90e8\u5206\u306f 1234567 \u3067\u3001\u56db\u6368\u4e94\u5165\u3057\u305f\u5c0f\u6570\u90e8\u5206\u306f 0.9 \u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u7d50\u679c\u306f 1234567.9 \u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-4\">\uff05\u8868\u8a18<\/h2>\n\n\n\n<p>\u7d9a\u3044\u3066%\u8868\u8a18\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>x = 0.123\nprint(f'\u5c0f\u6570\u70b9\u4ee5\u4e0b\u30922\u6841\u3067\u30d1\u30fc\u30bb\u30f3\u30c8\u8868\u8a18\u3067\u8868\u793a: {x:.2%}')\n# \u5c0f\u6570\u70b9\u4ee5\u4e0b\u30922\u6841\u3067\u30d1\u30fc\u30bb\u30f3\u30c8\u8868\u8a18\u3067\u8868\u793a: 12.30%<\/code><\/pre>\n\n\n\n<p><code>x = 0.123<\/code>\uff1a\u5909\u6570 <code>x<\/code> \u306b\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570 0.123 \u3092\u4ee3\u5165\u3057\u307e\u3059\u3002<br><code><meta charset=\"utf-8\">print(f'\u5c0f\u6570\u70b9\u4ee5\u4e0b\u30922\u6841\u3067\u30d1\u30fc\u30bb\u30f3\u30c8\u8868\u8a18\u3067\u8868\u793a: {x:.2%}')<\/code>\uff1a\u3053\u306e\u90e8\u5206\u3067 f-string \u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<code>x: {f:.2%} <\/code>\u3068\u3044\u3046\u6587\u5b57\u5217\u3092\u751f\u6210\u3059\u308b\u969b\u306b\u3001{f:.2%} \u306e\u90e8\u5206\u3067\u3001f \u306e\u5024\u3092\u30d1\u30fc\u30bb\u30f3\u30c8\u8868\u8a18\u306b\u5909\u63db\u3057\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b2\u6841\u307e\u3067\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br><code>:.2%<\/code> \u306f\u66f8\u5f0f\u6307\u5b9a\u5b50\u3067\u3059\u3002\u3053\u306e\u6307\u5b9a\u5b50\u306f\u3001\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u3092\u30d1\u30fc\u30bb\u30f3\u30c8\u8868\u8a18\u306b\u5909\u63db\u3057\uff08%\uff09\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b2\u6841\uff08.2\uff09\u307e\u3067\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br>f \u306e\u5024 0.123 \u3092\u30d1\u30fc\u30bb\u30f3\u30c8\u8868\u8a18\u306b\u5909\u63db\u3059\u308b\u3068\u300112.30% \u306b\u306a\u308a\u307e\u3059\u3002<br><meta charset=\"utf-8\"><strong>12.30% \u306b\u306a\u308b\u7406\u7531\u3067\u3059\u304c\u3001\u66f8\u5f0f\u6307\u5b9a\u5b50 :.2% \u306b\u5f93\u3063\u3066\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u30922\u6841\u3067\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u300112.30% \u3068\u306a\u308a\u307e\u3059\u3002<\/strong><br>\uff08\u66f8\u5f0f\u6307\u5b9a\u5b50\u304c :.1% \u306e\u5834\u5408\u306f12.3%\u3068\u306a\u308a\u307e\u3059\u3002\uff09<br>\u6700\u7d42\u7684\u306a\u6587\u5b57\u5217\u306f \u300c\u5c0f\u6570\u70b9\u4ee5\u4e0b\u30922\u6841\u3067\u30d1\u30fc\u30bb\u30f3\u30c8\u8868\u8a18\u3067\u8868\u793a: 12.30%\u300d \u3068\u306a\u308a\u3001\u3053\u308c\u304c <code>print<\/code> \u95a2\u6570\u306b\u3088\u3063\u3066\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-4\">\u2728AI\u4eba\u6750\u30b3\u30fc\u30b9 \u53d7\u8b1b\u304a\u7533\u8fbc\u307f\u53d7\u4ed8\u4e2d\uff01<\/h1>\n\n\n\n<p><a href=\"https:\/\/aiacademy.jp\/bootcamp\">AI Academy Bootcamp<\/a>&nbsp;\u3067\u306fAI\u30fb\u30c7\u30fc\u30bf\u30b5\u30a4\u30a8\u30f3\u30b9\u3001\u6a5f\u68b0\u5b66\u7fd2\u3001Web\u30a2\u30d7\u30ea\u958b\u767a\u306e\u5b9f\u8df5\u529b\u3092\u9ad8\u3081\u308b\u5168\uff16\u30b3\u30fc\u30b9\u7d0450\u6642\u9593\u4ee5\u4e0a\u306e\u52d5\u753b\u304c\u898b\u653e\u984c\uff01AI\u306e\u5b66\u7fd2\u306b\u5fc5\u9808\u306ePython\u306e\u5b66\u7fd2\u304b\u3089\u59cb\u307e\u308a\u3001IT\u30ea\u30c6\u30e9\u30b7\u30fc\u3001LLM\u5b66\u7fd2\u306a\u3069\u3001\u76ee\u7684\u306b\u5fdc\u3058\u305f\u5e45\u5e83\u3044\u5206\u91ce\u3092\u30ab\u30d0\u30fc\u3057\u3066\u3044\u307e\u3059\u3002LINE\u516c\u5f0f\u3067\u306f\u3001\u304a\u5f97\u306a\u5272\u5f15\u30af\u30fc\u30dd\u30f3\u3082\u30d7\u30ec\u30bc\u30f3\u30c8\u3057\u3066\u3044\u307e\u3059\uff01<\/p>\n\n\n\n<p><strong>\u5358\u72ec\u3067\u5b66\u3076\u3088\u308a\u3001\u5168\u30b3\u30fc\u30b9\u3092\u4e00\u6c17\u306b\u5b66\u3076\u3053\u3068\u3067\u5f97\u3089\u308c\u308b\u300c\u5b66\u7fd2\u30b7\u30ca\u30b8\u30fc\u52b9\u679c\u300d\u304c\u7279\u9577\u3002<\/strong><br>\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067\u3001\u30c7\u30fc\u30bf\u5206\u6790\u3068AI\u958b\u767a\u306e\u30b9\u30ad\u30eb\u3092\u52b9\u7387\u3088\u304f\u8eab\u306b\u3064\u3051\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/lin.ee\/3E4GzWk\" target=\"_blank\" rel=\" noreferrer noopener nofollow\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"349\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2019\/11\/\u30af\u30fc\u30dd\u30f3Media06-1024x349.png\" alt=\"\" class=\"wp-image-7228\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2019\/11\/\u30af\u30fc\u30dd\u30f3Media06-1024x349.png 1024w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2019\/11\/\u30af\u30fc\u30dd\u30f3Media06-300x102.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2019\/11\/\u30af\u30fc\u30dd\u30f3Media06-768x261.png 768w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2019\/11\/\u30af\u30fc\u30dd\u30f3Media06-1536x523.png 1536w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2019\/11\/\u30af\u30fc\u30dd\u30f3Media06-2048x697.png 2048w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2019\/11\/\u30af\u30fc\u30dd\u30f3Media06-940x320.png 940w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Python\u306b\u306ff\u6587\u5b57\u5217\uff08f-strings\u3001\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u6e08\u307f\u6587\u5b57\u5217\u30ea\u30c6\u30e9\u30eb\uff09\u3092\u7528\u3044\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u77ed\u3044\u8a18\u6cd5\u3067\u6587\u5b57\u5217\u3092\u57cb\u3081\u8fbc\u3080\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002 \u5f93\u6765\u3067\u306f\u3001\u6587\u5b57\u5217\u30e1\u30bd\u30c3\u30c9format()\u3092\u7528\u3044\u308b\u3053\u3068\u304c\u4e00\u822c\u7684\u3067\u3057\u305f\u304c\u3001Pyth &#8230; <\/p>\n","protected":false},"author":1,"featured_media":5871,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85,172],"tags":[],"class_list":{"0":"post-1532","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python","8":"category-172"},"_links":{"self":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/1532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1532"}],"version-history":[{"count":51,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/1532\/revisions"}],"predecessor-version":[{"id":7320,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/1532\/revisions\/7320"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/media\/5871"}],"wp:attachment":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}