{"id":88,"date":"2025-05-01T18:17:15","date_gmt":"2025-05-01T09:17:15","guid":{"rendered":"https:\/\/www.kuruma-ai-life.top\/?p=88"},"modified":"2025-05-01T18:17:15","modified_gmt":"2025-05-01T09:17:15","slug":"%f0%9f%9a%97%e3%80%90%e6%8a%80%e8%a1%93%e8%a7%a3%e8%aa%ac%e3%80%91python%e3%81%a7%e4%b8%ad%e5%8f%a4%e8%bb%8a%e3%82%b5%e3%82%a4%e3%83%88%e3%81%8b%e3%82%89%e8%bb%8a%e7%a8%ae%e7%94%bb%e5%83%8f%e3%82%92","status":"publish","type":"post","link":"https:\/\/www.kuruma-ai-life.top\/?p=88","title":{"rendered":"\ud83d\ude97\u3010\u6280\u8853\u89e3\u8aac\u3011Python\u3067\u4e2d\u53e4\u8eca\u30b5\u30a4\u30c8\u304b\u3089\u8eca\u7a2e\u753b\u50cf\u3092\u81ea\u52d5\u53ce\u96c6\u3057\u3066\u307f\u305f\u8a71\u3010\u958b\u767a\u8a18\u9332#3\u3011"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\"><\/h1>\n\n\n\n<p>\u3053\u3093\u306b\u3061\u306f\u3002\u4eca\u56de\u306f\u3001\u79c1\u304c\u73fe\u5728\u958b\u767a\u3057\u3066\u3044\u308b<strong>\u8eca\u7a2e\u5224\u5225AI<\/strong>\u306e\u305f\u3081\u306b\u884c\u3063\u305f\u300c\u8eca\u306e\u753b\u50cf\u53ce\u96c6\u300d\u306b\u3064\u3044\u3066\u3001\u6280\u8853\u7684\u306a\u89b3\u70b9\u304b\u3089\u7d39\u4ecb\u3057\u307e\u3059\u3002\u307f\u306a\u3055\u3093\u3054\u5b58\u77e5\u306e\u901a\u308a\u3001AI\u306b\u304a\u3044\u3066\u6559\u5e2b\u30c7\u30fc\u30bf\u306e\u8cea\u30fb\u91cf\u306fAI\u306e\u30e2\u30c7\u30eb\u7cbe\u5ea6\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u91cd\u8981\u306a\u30d5\u30a1\u30af\u30bf\u30fc\u3067\u3059\u3002\u305d\u306e\u6559\u5e2b\u30c7\u30fc\u30bf\u3092\u4eca\u56de\u306f\u52b9\u7387\u3088\u304f\u5927\u91cf\u306b\u96c6\u3081\u305f\u7d39\u4ecb\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd0d \u306a\u305c\u4e2d\u53e4\u8eca\u30b5\u30a4\u30c8\u304b\u3089\u753b\u50cf\u3092\u96c6\u3081\u305f\u306e\u304b\uff1f<\/h2>\n\n\n\n<p>AI\u306b\u8eca\u7a2e\u3092\u6b63\u78ba\u306b\u5224\u5225\u3055\u305b\u308b\u306b\u306f\u3001\u5927\u91cf\u304b\u3064\u591a\u69d8\u306a\u753b\u50cf\u30c7\u30fc\u30bf\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u305d\u3053\u3067\u79c1\u304c\u6ce8\u76ee\u3057\u305f\u306e\u304c<strong>\u4e2d\u53e4\u8eca\u8ca9\u58f2\u30b5\u30a4\u30c8<\/strong>\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u7406\u7531\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u3059\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u8eca\u7a2e\u3054\u3068\u306b\u5927\u91cf\u306e\u5b9f\u5199\u753b\u50cf\u304c\u63b2\u8f09\u3055\u308c\u3066\u3044\u308b<\/strong><\/li>\n\n\n\n<li>\u7570\u306a\u308b\u89d2\u5ea6\u3084\u80cc\u666f\u3001\u5929\u5019\u306e\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u3082\u8c4a\u5bcc<\/li>\n\n\n\n<li>\u4e00\u822c\u7684\u306a\u753b\u50cf\u691c\u7d22\u3088\u308a\u3082<strong>\u30e9\u30d9\u30eb\u4ed8\u304d\u30c7\u30fc\u30bf\u3068\u3057\u3066\u6271\u3044\u3084\u3059\u3044<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u73fe\u5b9f\u306b\u8fd1\u3044\u5b66\u7fd2\u30c7\u30fc\u30bf\u3092\u52b9\u7387\u3088\u304f\u53ce\u96c6\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"760\" src=\"https:\/\/www.kuruma-ai-life.top\/wp-content\/uploads\/2025\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-05-01-18.13.26-1024x760.png\" alt=\"\" class=\"wp-image-90\" srcset=\"https:\/\/www.kuruma-ai-life.top\/wp-content\/uploads\/2025\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-05-01-18.13.26-1024x760.png 1024w, https:\/\/www.kuruma-ai-life.top\/wp-content\/uploads\/2025\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-05-01-18.13.26-300x223.png 300w, https:\/\/www.kuruma-ai-life.top\/wp-content\/uploads\/2025\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-05-01-18.13.26-768x570.png 768w, https:\/\/www.kuruma-ai-life.top\/wp-content\/uploads\/2025\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-05-01-18.13.26-1536x1139.png 1536w, https:\/\/www.kuruma-ai-life.top\/wp-content\/uploads\/2025\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-05-01-18.13.26-2048x1519.png 2048w, https:\/\/www.kuruma-ai-life.top\/wp-content\/uploads\/2025\/05\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-05-01-18.13.26-1024x760.png 856w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2699\ufe0f \u4f7f\u7528\u6280\u8853\u3068\u69cb\u6210<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u8a00\u8a9e<\/strong>\uff1aPython 3.x<\/li>\n\n\n\n<li><strong>\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u30c4\u30fc\u30eb<\/strong>\uff1aSelenium + webdriver-manager<\/li>\n\n\n\n<li><strong>\u30d6\u30e9\u30a6\u30b6\u64cd\u4f5c<\/strong>\uff1aChrome\uff08\u30d8\u30c3\u30c9\u30ec\u30b9\u30e2\u30fc\u30c9\u5bfe\u5fdc\uff09<\/li>\n\n\n\n<li><strong>\u753b\u50cf\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/strong>\uff1aurllib.request<\/li>\n\n\n\n<li><strong>\u524d\u51e6\u7406<\/strong>\uff1a\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u306b\u3088\u308b\u30b4\u30df\u753b\u50cf\u30d5\u30a3\u30eb\u30bf<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\udde0 \u8eca\u7a2e\u30ea\u30b9\u30c8\u306e\u4e00\u5143\u7ba1\u7406<\/h2>\n\n\n\n<p>\u8eca\u7a2e\u540d\uff08\u65e5\u672c\u8a9e\u30fb\u82f1\u8a9e\uff09\u3068\u691c\u7d22\u7528\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u307e\u3068\u3081\u3066\u7ba1\u7406\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>car_list = &#91;\n    {\"jp_name\": \"\u30c8\u30e8\u30bf \u30d7\u30ea\u30a6\u30b9\", \"en_name\": \"Toyota Prius\", \"keyword\": \"\u30c8\u30e8\u30bf \u30d7\u30ea\u30a6\u30b9 site:example.com\"},\n    {\"jp_name\": \"\u30db\u30f3\u30c0 \u30d5\u30a3\u30c3\u30c8\", \"en_name\": \"Honda Fit\", \"keyword\": \"\u30db\u30f3\u30c0 \u30d5\u30a3\u30c3\u30c8 site:example.com\"},\n    ...\n]<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u203b <code>site:example.com<\/code> \u306f\u3001\u5b9f\u969b\u306b\u753b\u50cf\u3092\u53ce\u96c6\u3059\u308b\u4e2d\u53e4\u8eca\u30b5\u30a4\u30c8\u306e\u30c9\u30e1\u30a4\u30f3\u306b\u7f6e\u304d\u63db\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udcf8 \u753b\u50cf\u53ce\u96c6\u51e6\u7406\u306e\u6d41\u308c<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6307\u5b9a\u306e\u4e2d\u53e4\u8eca\u8ca9\u58f2\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9<\/li>\n\n\n\n<li>\u5404\u8eca\u7a2e\u30da\u30fc\u30b8\u3092\u691c\u7d22\u3057\u3066\u81ea\u52d5\u30b9\u30af\u30ed\u30fc\u30eb<\/li>\n\n\n\n<li>\u63b2\u8f09\u3055\u308c\u305f\u753b\u50cf\u306eURL\u3092\u53d6\u5f97<\/li>\n\n\n\n<li>Python\u3067\u753b\u50cf\u3092\u4fdd\u5b58<\/li>\n\n\n\n<li><strong>\u5c0f\u3055\u3059\u304e\u308b\u753b\u50cf\uff08\u30d0\u30ca\u30fc\u7b49\uff09\u306f\u9664\u53bb<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>if os.path.getsize(filepath) &lt; 5000:\n    os.remove(filepath)<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddfc \u30b4\u30df\u753b\u50cf\u306e\u30d5\u30a3\u30eb\u30bf\u51e6\u7406<\/h2>\n\n\n\n<p>\u4eca\u56de\u306f<strong>\u30b5\u30a4\u30ba\u30d5\u30a3\u30eb\u30bf<\/strong>\u306b\u52a0\u3048\u3066\u3001\u5225\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u300c\u8eca\u304c\u5199\u3063\u3066\u3044\u306a\u3044\u753b\u50cf\u300d\u300c\u4e0d\u9bae\u660e\u306a\u753b\u50cf\u300d\u306a\u3069\u3082\u5f8c\u51e6\u7406\u3067\u9664\u5916\u3057\u307e\u3057\u305f\u3002AI\u306e\u5b66\u7fd2\u306b\u4f7f\u3048\u308b\u30af\u30ea\u30fc\u30f3\u306a\u30c7\u30fc\u30bf\u306b\u3059\u308b\u3053\u3068\u304c\u76ee\u7684\u3067\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udca1 \u5de5\u592b\u3057\u305f\u30dd\u30a4\u30f3\u30c8<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u753b\u50cf\u53ce\u96c6\u6570\uff08max_images\uff09\u3092\u67d4\u8edf\u306b\u8a2d\u5b9a\u53ef\u80fd<\/strong><\/li>\n\n\n\n<li>\u30da\u30fc\u30b8\u9077\u79fb\u3092\u7e70\u308a\u8fd4\u3057\u3066<strong>\u591a\u6570\u306e\u8eca\u4f53\u5199\u771f\u3092\u53d6\u5f97<\/strong><\/li>\n\n\n\n<li><strong>\u30e9\u30f3\u30c0\u30e0\u306a\u5f85\u6a5f\u6642\u9593<\/strong>\u3092\u633f\u5165\u3057\u3001Bot\u691c\u77e5\u3092\u56de\u907f<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udcc2 \u4eca\u5f8c\u306e\u5c55\u671b<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>YOLO\u3092\u4f7f\u3063\u305f<strong>\u8eca\u4f53\u306e\u81ea\u52d5\u30c8\u30ea\u30df\u30f3\u30b0<\/strong>\u51e6\u7406\u3068\u306e\u7d71\u5408<\/li>\n\n\n\n<li>PyTorch\u7528\u306btrain\/val\/test\u3078\u5206\u985e\u3059\u308b<strong>\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u6574\u7406\u30b9\u30af\u30ea\u30d7\u30c8<\/strong>\u306e\u81ea\u52d5\u5316<\/li>\n\n\n\n<li>\u5c06\u6765\u7684\u306b\u306f\u300c<strong>\u8eca\u7a2e\uff0b\u65b0\u8eca\u4fa1\u683c\uff0b\u4e2d\u53e4\u4fa1\u683c<\/strong>\u300d\u3092\u81ea\u52d5\u8868\u793a\u3059\u308b\u30a2\u30d7\u30ea\u3078\u767a\u5c55\u4e88\u5b9a\uff01<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udcdd \u6700\u5f8c\u306b<\/h2>\n\n\n\n<p>\u4e2d\u53e4\u8eca\u30b5\u30a4\u30c8\u306f\u3001AI\u5b66\u7fd2\u7528\u306e\u5b9f\u7528\u7684\u306a\u30c7\u30fc\u30bf\u6e90\u3068\u3057\u3066\u975e\u5e38\u306b\u512a\u308c\u3066\u3044\u307e\u3059\u3002\u4eca\u56de\u306e\u81ea\u52d5\u5316\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3001\u5fc5\u8981\u306a\u8eca\u7a2e\u753b\u50cf\u3092\u9ad8\u901f\u304b\u3064\u5b89\u5b9a\u7684\u306b\u53ce\u96c6\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u6b21\u56de\u306f\u3053\u306e\u30c7\u30fc\u30bf\u3092\u6d3b\u7528\u3057\u305f<strong>ResNet\u30e2\u30c7\u30eb\u306b\u3088\u308b\u8eca\u7a2e\u5206\u985e<\/strong>\u306b\u3064\u3044\u3066\u89e3\u8aac\u4e88\u5b9a\u3067\u3059\uff01<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002\u4eca\u56de\u306f\u3001\u79c1\u304c\u73fe\u5728\u958b\u767a\u3057\u3066\u3044\u308b\u8eca\u7a2e\u5224\u5225AI\u306e\u305f\u3081\u306b\u884c\u3063\u305f\u300c\u8eca\u306e\u753b\u50cf\u53ce\u96c6\u300d\u306b\u3064\u3044\u3066\u3001\u6280\u8853\u7684\u306a\u89b3\u70b9\u304b\u3089\u7d39\u4ecb\u3057\u307e\u3059\u3002\u307f\u306a\u3055\u3093\u3054\u5b58\u77e5\u306e\u901a\u308a\u3001AI\u306b\u304a\u3044\u3066\u6559\u5e2b\u30c7\u30fc\u30bf\u306e\u8cea\u30fb\u91cf\u306fAI\u306e\u30e2\u30c7\u30eb\u7cbe\u5ea6\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u91cd\u8981\u306a\u30d5\u30a1\u30af\u30bf\u30fc<\/p>\n","protected":false},"author":1,"featured_media":49,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[16],"tags":[3,9,12,7,6,13,4,8,11,5],"class_list":["post-88","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-16","tag-ai","tag-deeplearning","tag-mac","tag-pytorch","tag-resnet","tag-ubuntu","tag-yolo","tag-8","tag-11","tag-5"],"jetpack_featured_media_url":"https:\/\/www.kuruma-ai-life.top\/wp-content\/uploads\/2025\/04\/ChatGPT-Image-2025\u5e744\u670822\u65e5-12_44_26.jpeg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.kuruma-ai-life.top\/index.php?rest_route=\/wp\/v2\/posts\/88","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kuruma-ai-life.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kuruma-ai-life.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kuruma-ai-life.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kuruma-ai-life.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=88"}],"version-history":[{"count":2,"href":"https:\/\/www.kuruma-ai-life.top\/index.php?rest_route=\/wp\/v2\/posts\/88\/revisions"}],"predecessor-version":[{"id":91,"href":"https:\/\/www.kuruma-ai-life.top\/index.php?rest_route=\/wp\/v2\/posts\/88\/revisions\/91"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kuruma-ai-life.top\/index.php?rest_route=\/wp\/v2\/media\/49"}],"wp:attachment":[{"href":"https:\/\/www.kuruma-ai-life.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=88"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kuruma-ai-life.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=88"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kuruma-ai-life.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}