{"id":46629,"date":"2022-12-06T09:58:15","date_gmt":"2023-02-12T17:41:37","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/46629-2\/"},"modified":"2024-04-29T03:58:23","modified_gmt":"2024-04-28T19:58:23","slug":"46629-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/46629-2\/","title":{"rendered":""},"content":{"rendered":"<h1>\u6a5f\u68b0\u5b66\u7fd2\u3068\u3044\u3048\u3070Python<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Python\u306b\u306f\u6a5f\u68b0\u5b66\u7fd2\u306b\u95a2\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u8c4a\u5bcc\u306b\u305d\u308d\u3063\u3066\u3044\u3066\u3001\u521d\u5fc3\u8005\u3067\u3082\u7c21\u5358\u306b\u4f7f\u3044\u59cb\u3081\u3089\u308c\u308b\u3053\u3068\u304c\u7406\u7531\u306e\uff11\u3064<\/ul>\n<\/li>\n<\/ul>\n<p>\u4f7f\u7528\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8<\/p>\n<p>tensorflow\uff1a\u6a5f\u68b0\u5b66\u7fd2\u306b\u95a2\u9023\u3059\u308b\u3082\u306e<\/p>\n<p>Flask\uff1aWeb\u30a2\u30d7\u30ea\u5316\u3059\u308b\u305f\u3081\u306e\u3082\u306e<\/p>\n<p>pip install tensorflow==1.12.0 keras matplotlib<br \/>\npip install Flask flask-cors<\/p>\n<h1>Jupyter Notebook\u3067\u6a5f\u68b0\u5b66\u7fd2\uff08Google Colaboratory\u3092\u4f7f\u7528\uff09<\/h1>\n<p>\u30ce\u30fc\u30c8\u30d6\u30c3\u30af\u5834\u3067\u6a5f\u68b0\u5b66\u7fd2\u3092\u52d5\u304b\u3057\u3066\u3001\u6570\u5b57\u753b\u50cf\u3092\u8a8d\u8b58\u3055\u305b\u3066\u307f\u308b\u3002<br \/>\nipython.notebook\u304c\u3069\u3046\u3082\u3046\u307e\u304f\u52d5\u4f5c\u3057\u306a\u3044\u3002\u3002\u3002<br \/>\n\u306e\u3067\u3001\u7d50\u5c40CentOS7\u306b jupyter notebook\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u691c\u8a3c<\/p>\n<pre class=\"post-pre\"><code># (1) \u5b66\u7fd2\u6e08\u307f\u30e2\u30c7\u30eb\u306e\u8aad\u307f\u8fbc\u307f\r\nfrom keras.models import load_model\r\nmodel = load_model('\/content\/drive\/My Drive\/Colab Notebooks\/cnn.h5')\r\n\r\n# (2) MNIST\u30c6\u30b9\u30c8\u753b\u50cf\u306e\u8aad\u307f\u8fbc\u307f\r\nfrom keras.datasets import mnist\r\n(train_images, train_labels), (test_images, test_labels) = mnist.load_data()\r\ntest_images = test_images.astype('float32') \/ 255\r\n\r\n# (3) \u4e88\u6e2c\u3059\u308b\u753b\u50cf\u3092\u8868\u793a\r\n%matplotlib inline\r\nimport matplotlib.pyplot as plt\r\nplt.imshow(test_images[0], cmap='gray_r')\r\n\r\n# (4) \u6a5f\u68b0\u5b66\u7fd2\u30e2\u30c7\u30eb\u306b\u3088\u308b\u4e88\u6e2c\r\nimport numpy as np\r\npred = model.predict(test_images[0].reshape(1, 28, 28, 1))\r\nprint(pred)\r\n#=&gt; [[6.83331218e-11 9.19927301e-10 5.45313406e-10 3.99958111e-09 1.16873996e-14\r\n#     2.17858523e-10 2.98024704e-16 1.00000000e+00 2.00886807e-10 4.71085215e-09]]\r\nprint(np.argmax(pred)) #=&gt; 7\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d655c37434c4406d06d88\/5-0.png\" alt=\"Untitled3_ipynb_-_Colaboratory.png\" \/><\/div>\n<pre class=\"post-pre\"><code># (1) Canvas\u3092\u8868\u793a\u3059\u308b HTML\r\nhtml = '''\r\n&lt;canvas width=\"280\" style=\"border:solid\"&gt;&lt;\/canvas&gt;\r\n&lt;script type=\"text\/javascript\"&gt;\r\n    var pixels = [];\r\n    for (var i = 0; i &lt; 28 * 28; i++) pixels[i] = 0;\r\n    var canvas = document.querySelector(\"canvas\");\r\n    var drawing = false;\r\n\r\n    canvas.addEventListener(\"mousedown\", function() {\r\n      drawing = true;\r\n    });\r\n\r\n    canvas.addEventListener(\"mouseup\", function() {\r\n      drawing = false;\r\n      IPython.notebook.kernel.execute(\"image = [\" + pixels + \"]\");  # &lt;&lt;-- Google Colab\r\n\u3067\u306f\u3053\u3053\u304c\u3069\u3046\u3057\u3066\u3082\u52d5\u304b\u306a\u3044\r\n    });\r\n\r\n    canvas.addEventListener(\"mousemove\", function(e) {\r\n      if (drawing) {\r\n        var x = Math.floor(e.offsetX \/ 10);\r\n        var y = Math.floor(e.offsetY \/ 10);\r\n        if (0 &lt;= x &amp;&amp; x &lt;= 27 &amp;&amp; 0 &lt;= y &amp;&amp; y &lt;= 27) {\r\n          canvas.getContext(\"2d\").fillRect(x*10, y*10, 10, 10);\r\n          pixels[x+y*28] = 1;\r\n        }\r\n      }\r\n    });\r\n&lt;\/script&gt;\r\n'''\r\n\r\n# (2) HTML\u306e\u5b9f\u884c\r\nfrom IPython.display import HTML\r\nHTML(html)\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d655c37434c4406d06d88\/7-0.png\" alt=\"image.png\" \/><\/div>\n<pre class=\"post-pre\"><code># \u6a5f\u68b0\u5b66\u7fd2\u30e2\u30c7\u30eb\u306b\u3088\u308b\u4e88\u6e2c\r\nimg = np.array(image, dtype=np.float32)  &lt;&lt;-- \u51e6\u7406\uff12\u3067\u66f8\u3044\u305f\u6587\u5b57\u3092\u8a8d\u8b58\u3067\u304d\u306a\u3044\r\npred = model.predict(img.reshape(1, 28, 28, 1))\r\nprint(np.argmax(pred)) #=&gt; 9\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d655c37434c4406d06d88\/9-0.png\" alt=\"image.png\" \/><\/div>\n<h2>Jupyter Notebook\u4f7f\u7528\u3067\u304d\u308b\u307e\u3067<\/h2>\n<p>anaconda3\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/p>\n<pre class=\"post-pre\"><code>[root@centos7 ~]# curl https:\/\/repo.continuum.io\/archive\/Anaconda3-4.3.1-Linux-x86_64.sh -O\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100  474M  100  474M    0     0  9855k      0  0:00:49  0:00:49 --:--:-- 11.0M\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>[root@centos7 ~]# bash .\/Anaconda3-4.3.1-Linux-x86_64.sh\r\n<\/code><\/pre>\n<p>jupyter notebook\u306e\u8a2d\u5b9a<\/p>\n<pre class=\"post-pre\"><code>[root@centos7 ~]# mkdir -p \/root\/.jupyter\r\n[root@centos7 ~]# touch ~\/.jupyter\/jupyter_notebook_config.py\r\n[root@centos7 ~]# vi ~\/.jupyter\/jupyter_notebook_config.py\r\n\r\n[root@centos7 ~]# cat ~\/.jupyter\/jupyter_notebook_config.py\r\nc = get_config()\r\n\r\nc.NotebookApp.ip = '*'\r\nc.NotebookApp.open_browser = false\r\nc.NotebookApp.port = 8888\r\nc.NotebookApp.password = u'sha1:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'  &lt;--\u3042\u3068\u3067\r\n[root@centos7 ~]#\r\n<\/code><\/pre>\n<p>firewall\u306e\u8a2d\u5b9a<\/p>\n<pre class=\"post-pre\"><code>[root@centos7 ~]# firewall-cmd --state\r\nTraceback (most recent call last):\r\n  File \"\/usr\/bin\/firewall-cmd\", line 24, in &lt;module&gt;\r\n    from gi.repository import GObject\r\n\r\n[root@centos7 ~]# ll \/usr\/bin\/python\r\nlrwxrwxrwx. 1 root root 16  9\u6708  1 16:11 \/usr\/bin\/python -&gt; \/usr\/bin\/python3\r\n\r\n[root@centos7 ~]# ln -nfs \/usr\/bin\/python2 \/usr\/bin\/python\r\n[root@centos7 ~]# ll \/usr\/bin\/python\r\nlrwxrwxrwx. 1 root root 16  9\u6708 15 14:41 \/usr\/bin\/python -&gt; \/usr\/bin\/python2\r\n\r\n[root@centos7 ~]# firewall-cmd --state\r\nrunning\r\n\r\n[root@centos7 ~]# firewall-cmd --list-all --zone=public\r\npublic (active)\r\n  target: default\r\n  icmp-block-inversion: no\r\n  interfaces: ens999\r\n  sources:\r\n  services: ssh\r\n  ports:\r\n  protocols:\r\n  masquerade: no\r\n  forward-ports:\r\n  source-ports:\r\n  icmp-blocks:\r\n  rich rules:\r\n\r\n[root@centos7 ~]# firewall-cmd --add-port=8888\/tcp --zone=public --permanent\r\nsuccess\r\n[root@centos7 ~]# firewall-cmd --add-service=http --zone=public --permanent\r\nsuccess\r\n[root@centos7 ~]# firewall-cmd --reload\r\nsuccess\r\n[root@centos7 ~]#\r\n[root@centos7 ~]# firewall-cmd --list-all --zone=public\r\npublic (active)\r\n  target: default\r\n  icmp-block-inversion: no\r\n  interfaces: ens999\r\n  sources:\r\n  services: ssh http\r\n  ports: 8888\/tcp\r\n  protocols:\r\n  masquerade: no\r\n  forward-ports:\r\n  source-ports:\r\n  icmp-blocks:\r\n  rich rules:\r\n\r\n[root@centos7 ~]# ipython\r\nPython 3.6.8 (default, May  2 2019, 20:40:44)\r\nType 'copyright', 'credits' or 'license' for more information\r\nIPython 7.8.0 -- An enhanced Interactive Python. Type '?' for help.\r\n\r\nc = get_config()\r\nIn [1]: from notebook.auth import passwd\r\n\r\nIn [2]: passwd()\r\nEnter password:\r\nVerify password:\r\nOut[2]: 'sha1:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'\r\n\r\nIn [4]: exit\r\n[root@centos7 ~]# vi ~\/.jupyter\/jupyter_notebook_config.py\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>[root@centos7 ~]# jupyter notebook --allow-root\r\n[E 14:54:57.290 NotebookApp] Exception while loading config file \/root\/.jupyter\/jupyter_notebook_config.py\r\n    Traceback (most recent call last):\r\n      File \"\/usr\/lib\/python3.6\/site-packages\/traitlets\/config\/application.py\", line 562, in _load_config_files\r\n        config = loader.load_config()\r\n      File \"\/usr\/lib\/python3.6\/site-packages\/traitlets\/config\/loader.py\", line 457, in load_config\r\n        self._read_file_as_dict()\r\n      File \"\/usr\/lib\/python3.6\/site-packages\/traitlets\/config\/loader.py\", line 489, in _read_file_as_dict\r\n        py3compat.execfile(conf_filename, namespace)\r\n      File \"\/usr\/lib\/python3.6\/site-packages\/ipython_genutils\/py3compat.py\", line 198, in execfile\r\n        exec(compiler(f.read(), fname, 'exec'), glob, loc)\r\n      File \"\/root\/.jupyter\/jupyter_notebook_config.py\", line 4, in &lt;module&gt;\r\n        c.NotebookApp.open_browser = false\r\n    NameError: name 'false' is not defined\r\n[I 14:54:57.498 NotebookApp] Serving notebooks from local directory: \/root\r\n[I 14:54:57.498 NotebookApp] The Jupyter Notebook is running at:\r\n[I 14:54:57.499 NotebookApp] http:\/\/localhost:8888\/?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n[I 14:54:57.499 NotebookApp]  or http:\/\/127.0.0.1:8888\/?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n[I 14:54:57.499 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).\r\n[W 14:54:57.553 NotebookApp] No web browser found: could not locate runnable browser.\r\n[C 14:54:57.553 NotebookApp]\r\n\r\n    To access the notebook, open this file in a browser:\r\n        file:\/\/\/root\/.local\/share\/jupyter\/runtime\/nbserver-21530-open.html\r\n    Or copy and paste one of these URLs:\r\n        http:\/\/localhost:8888\/?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n     or http:\/\/127.0.0.1:8888\/?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6a5f\u68b0\u5b66\u7fd2\u3068\u3044\u3048\u3070Python Python\u306b\u306f\u6a5f\u68b0\u5b66\u7fd2\u306b\u95a2\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u8c4a\u5bcc\u306b\u305d\u308d\u3063\u3066\u3044\u3066\u3001\u521d\u5fc3\u8005\u3067\u3082\u7c21\u5358\u306b [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-46629","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>- Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/46629-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"\u6a5f\u68b0\u5b66\u7fd2\u3068\u3044\u3048\u3070Python Python\u306b\u306f\u6a5f\u68b0\u5b66\u7fd2\u306b\u95a2\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u8c4a\u5bcc\u306b\u305d\u308d\u3063\u3066\u3044\u3066\u3001\u521d\u5fc3\u8005\u3067\u3082\u7c21\u5358\u306b [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/46629-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-12T17:41:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T19:58:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d655c37434c4406d06d88\/5-0.png\" \/>\n<meta name=\"author\" content=\"\u5b87, \u534e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5b87, \u534e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/46629-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/46629-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-02-12T17:41:37+00:00\",\"dateModified\":\"2024-04-28T19:58:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/46629-2\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\",\"name\":\"\u5b87, \u534e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"caption\":\"\u5b87, \u534e\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/46629-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"- Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/46629-2\/","og_locale":"zh_CN","og_type":"article","og_description":"\u6a5f\u68b0\u5b66\u7fd2\u3068\u3044\u3048\u3070Python Python\u306b\u306f\u6a5f\u68b0\u5b66\u7fd2\u306b\u95a2\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u8c4a\u5bcc\u306b\u305d\u308d\u3063\u3066\u3044\u3066\u3001\u521d\u5fc3\u8005\u3067\u3082\u7c21\u5358\u306b [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/46629-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-02-12T17:41:37+00:00","article_modified_time":"2024-04-28T19:58:23+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d655c37434c4406d06d88\/5-0.png"}],"author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/46629-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/46629-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-02-12T17:41:37+00:00","dateModified":"2024-04-28T19:58:23+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/46629-2\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458","name":"\u5b87, \u534e","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","caption":"\u5b87, \u534e"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/46629-2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/46629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=46629"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/46629\/revisions"}],"predecessor-version":[{"id":80127,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/46629\/revisions\/80127"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=46629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=46629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=46629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}