{"id":2011,"date":"2026-06-08T10:13:22","date_gmt":"2026-06-08T02:13:22","guid":{"rendered":"https:\/\/wp.kcra.org.hk\/?p=2011"},"modified":"2026-06-08T10:13:22","modified_gmt":"2026-06-08T02:13:22","slug":"google-colab-%e5%85%8d%e5%ae%89%e8%a3%9d%e5%af%abpython","status":"publish","type":"post","link":"https:\/\/wp.kcra.org.hk\/?p=2011","title":{"rendered":"Google Colab: \u514d\u5b89\u88dd\u5bebPython"},"content":{"rendered":"\n<p>\u514d\u5b89\u88dd\uff015\u5206\u9418\u7528 Google Colab<\/p>\n\n\n\n<p><strong>\u958b\u59cb\u5beb\u7a0b\u5f0f\u4e0d\u60f3\u5728\u96fb\u8166\u5b89\u88dd\u8edf\u9ad4\u55ce\uff1f<\/strong><\/p>\n<p>\u6c92\u554f\u984c\uff01Google Colab \u662f\u4e00\u6b3e\u514d\u8cbb\u7684\u7dda\u4e0a\u7a0b\u5f0f\u700f\u89bd\u5668\u74b0\u5883\u3002\u53ea\u8981\u6709 Google \u5e33\u865f\uff0c\u4f60\u5c31\u80fd\u76f4\u63a5\u5728\u7db2\u9801\u4e0a\u7de8\u5beb\u4e26\u57f7\u884c Python\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"275\" height=\"183\" src=\"http:\/\/wp.kcra.org.hk\/wp-content\/uploads\/2026\/06\/Google-Colab.png\" alt=\"\" class=\"wp-image-2004\" style=\"width:425px;height:auto\"\/><\/figure>\n<\/div>\n\n\n<p><strong>\u70ba\u4ec0\u9ebc\u63a8\u85a6 Google Colab\uff1f<\/strong><\/p>\n<p>\u96f6\u8a2d\u5b9a\uff1a\u6253\u958b\u7db2\u9801\u5c31\u80fd\u76f4\u63a5\u5beb\u7a0b\u5f0f\u3002\u5b8c\u5168\u514d\u8cbb\uff1a\u4e0d\u6d88\u8017\u81ea\u5df1\u96fb\u8166\u7684\u6548\u80fd\u3002\u96f2\u7aef\u5132\u5b58\uff1a\u7a0b\u5f0f\u78bc\u81ea\u52d5\u5132\u5b58\u5230 Google \u96f2\u7aef\u786c\u789f\u3002\u65b9\u4fbf\u5206\u4eab\uff1a\u4e00\u9375\u5c31\u80fd\u628a\u7a0b\u5f0f\u78bc\u5206\u4eab\u7d66\u670b\u53cb\u6216\u8001\u5e2b\u3002<\/p>\n\n\n\n<p><strong>Google Colab \u5feb\u901f\u4e0a\u624b\u56db\u6b65\u9a5f:<\/strong><\/p>\n<p>[\u6b65\u9a5f 1] \u767b\u5165\u96f2\u7aef\u786c\u789f \u2794 [\u6b65\u9a5f 2] \u65b0\u5efa Colab \u6a94\u6848 \u2794 [\u6b65\u9a5f 3] \u5efa\u7acb\u7a0b\u5f0f\u78bc\u5132\u5b58\u683c \u2794 [\u6b65\u9a5f 4] \u6309\u4e0b\u57f7\u884c<\/p>\n\n\n\n<p><strong>[\u6b65\u9a5f 1]<\/strong> \u9032\u5165\u96f2\u7aef\u786c\u789f\u6253\u958b\u4f60\u7684 Google \u96f2\u7aef\u786c\u789f\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"528\" height=\"847\" src=\"http:\/\/wp.kcra.org.hk\/wp-content\/uploads\/2026\/06\/Google-Colab-step1.png\" alt=\"\" class=\"wp-image-2005\" style=\"width:266px;height:auto\" srcset=\"https:\/\/wp.kcra.org.hk\/wp-content\/uploads\/2026\/06\/Google-Colab-step1.png 528w, https:\/\/wp.kcra.org.hk\/wp-content\/uploads\/2026\/06\/Google-Colab-step1-374x600.png 374w\" sizes=\"auto, (max-width: 528px) 100vw, 528px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>[\u6b65\u9a5f 2]<\/strong>\u65b0\u589e Colab \u6a94\u6848\u9ede\u64ca\u5de6\u4e0a\u89d2\u7684 \u300c\u65b0\u589e\u300d \u2794 \u9078\u64c7 \u300c\u66f4\u591a\u300d \u2794 \u9ede\u9078 \u300cGoogle Collaboratory\u300d\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"987\" height=\"604\" src=\"http:\/\/wp.kcra.org.hk\/wp-content\/uploads\/2026\/06\/Google-Colab-step2.png\" alt=\"\" class=\"wp-image-2006\" srcset=\"https:\/\/wp.kcra.org.hk\/wp-content\/uploads\/2026\/06\/Google-Colab-step2.png 987w, https:\/\/wp.kcra.org.hk\/wp-content\/uploads\/2026\/06\/Google-Colab-step2-800x490.png 800w\" sizes=\"auto, (max-width: 987px) 100vw, 987px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>[\u6b65\u9a5f 3]<\/strong>\u5de5\u4f5c\u5340\u4f60\u6703\u770b\u5230\u4e00\u500b\u4e7e\u6de8\u7684\u9801\u9762\u3002\u9801\u9762\u4e2d\u4e00\u500b\u683c\u5b50\u53eb\u505a \u300c\u5132\u5b58\u683c (Cell)\u300d\u3002\u9019\u5c31\u662f\u4f60\u5beb\u7a0b\u5f0f\u78bc\u7684\u5730\u65b9\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"575\" src=\"http:\/\/wp.kcra.org.hk\/wp-content\/uploads\/2026\/06\/Google-Colab-step3-1600x575.png\" alt=\"\" class=\"wp-image-2007\" srcset=\"https:\/\/wp.kcra.org.hk\/wp-content\/uploads\/2026\/06\/Google-Colab-step3-1600x575.png 1600w, https:\/\/wp.kcra.org.hk\/wp-content\/uploads\/2026\/06\/Google-Colab-step3-800x287.png 800w, https:\/\/wp.kcra.org.hk\/wp-content\/uploads\/2026\/06\/Google-Colab-step3-1536x552.png 1536w, https:\/\/wp.kcra.org.hk\/wp-content\/uploads\/2026\/06\/Google-Colab-step3.png 1831w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>[\u6b65\u9a5f 4]<\/strong>\u5beb\u4e0b\u7b2c\u4e00\u884c\u7a0b\u5f0f\u4e26\u57f7\u884c\u8acb\u5728\u5132\u5b58\u683c\u5167\u8f38\u5165\u4ee5\u4e0b\u7a0b\u5f0f\u78bc\uff1aprint(&#8220;Hello! \u9019\u662f\u6211\u7684\u7b2c\u4e00\u500b\u7db2\u9801 Python \u7a0b\u5f0f\uff01&#8221;)<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"142\" src=\"http:\/\/wp.kcra.org.hk\/wp-content\/uploads\/2026\/06\/Google-Colab-step4-1600x142.png\" alt=\"\" class=\"wp-image-2008\" srcset=\"https:\/\/wp.kcra.org.hk\/wp-content\/uploads\/2026\/06\/Google-Colab-step4-1600x142.png 1600w, https:\/\/wp.kcra.org.hk\/wp-content\/uploads\/2026\/06\/Google-Colab-step4-800x71.png 800w, https:\/\/wp.kcra.org.hk\/wp-content\/uploads\/2026\/06\/Google-Colab-step4-1536x136.png 1536w, https:\/\/wp.kcra.org.hk\/wp-content\/uploads\/2026\/06\/Google-Colab-step4.png 1767w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" \/><\/figure>\n<\/div>\n\n\n<p>\u8f38\u5165\u5b8c\u6210\u5f8c\uff0c\u9ede\u64ca\u5132\u5b58\u683c\u5de6\u5074\u7684 \u300c\u25b6\ufe0f \u57f7\u884c\u300d\u6309\u9215\uff08\u6216\u6309\u4e0b\u5feb\u6377\u9375 Ctrl + Enter\uff09\uff0c\u4e0b\u65b9\u5c31\u6703\u7acb\u5373\u986f\u793a\u57f7\u884c\u7d50\u679c\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u514d\u5b89\u88dd\uff015\u5206\u9418\u7528 Google Colab \u958b\u59cb\u5beb\u7a0b\u5f0f\u4e0d\u60f3\u5728\u96fb\u8166\u5b89\u88dd\u8edf\u9ad4\u55ce\uff1f \u6c92\u554f\u984c\uff01Google Colab &hellip; <a href=\"https:\/\/wp.kcra.org.hk\/?p=2011\" class=\"more-link\">\u95b1\u8b80\u5168\u6587 <span class=\"screen-reader-text\">Google Colab: \u514d\u5b89\u88dd\u5bebPython<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":50,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-2011","post","type-post","status-publish","format-standard","hentry","category-9"],"_links":{"self":[{"href":"https:\/\/wp.kcra.org.hk\/index.php?rest_route=\/wp\/v2\/posts\/2011","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.kcra.org.hk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.kcra.org.hk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.kcra.org.hk\/index.php?rest_route=\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.kcra.org.hk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2011"}],"version-history":[{"count":3,"href":"https:\/\/wp.kcra.org.hk\/index.php?rest_route=\/wp\/v2\/posts\/2011\/revisions"}],"predecessor-version":[{"id":2014,"href":"https:\/\/wp.kcra.org.hk\/index.php?rest_route=\/wp\/v2\/posts\/2011\/revisions\/2014"}],"wp:attachment":[{"href":"https:\/\/wp.kcra.org.hk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.kcra.org.hk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.kcra.org.hk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}