{"id":27938,"date":"2024-03-18T16:00:57","date_gmt":"2024-03-18T07:00:57","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81wechat%e3%81%a7%e8%b5%a4%e3%81%84%e5%b0%81%e7%ad%92%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%82%92%e3%82%b7\/"},"modified":"2024-03-22T17:24:08","modified_gmt":"2024-03-22T08:24:08","slug":"python%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81wechat%e3%81%a7%e8%b5%a4%e3%81%84%e5%b0%81%e7%ad%92%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%82%92%e3%82%b7","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81wechat%e3%81%a7%e8%b5%a4%e3%81%84%e5%b0%81%e7%ad%92%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%82%92%e3%82%b7\/","title":{"rendered":"Python\u3092\u4f7f\u7528\u3057\u3066\u3001WeChat\u3067\u8d64\u3044\u5c01\u7b52\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30c8\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u304b\uff1f"},"content":{"rendered":"<p>Python\u3092\u4f7f\u3063\u3066WeChat\u306e\u8d64\u3044\u5c01\u7b52\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3001\u6b21\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ol>\n<li>RedPacket\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u5c5e\u6027\u3068\u30e1\u30bd\u30c3\u30c9\u3092\u542b\u3081\u307e\u3059\u3002<\/li>\n<li>\u5c5e\u6027\uff1a\u304a\u5e74\u7389\u7dcf\u984d\u3001\u304a\u5e74\u7389\u306e\u6570\u3001\u304a\u5e74\u7389\u30ea\u30b9\u30c8<\/li>\n<li>\u65b9\u6cd5\uff1a\u8d64\u5305\u306e\u91d1\u984d\u30ea\u30b9\u30c8\u3092\u751f\u6210\u3059\u308b\u521d\u671f\u5316\u65b9\u6cd5<\/li>\n<li>\u521d\u671f\u5316\u30e1\u30bd\u30c3\u30c9\u3067\u306f\u3001total_amount\u3068num\u306e\u4e21\u65b9\u306e\u5024\u3092\u53d7\u3051\u53d6\u308a\u3001\u5404\u8d64\u5305\u306e\u6700\u5c0f\u91d1\u984dmin_amount\u3068\u6700\u5927\u91d1\u984dmax_amount\u3092\u8a08\u7b97\u3057\u307e\u3059\u3002<\/li>\n<li>\u8d64\u5305\u91d1\u984d\u30ea\u30b9\u30c8\u3092\u751f\u6210\u3059\u308b\u65b9\u6cd5\uff1a\u8d64\u5305\u306e\u6570\u3092num\u3068\u3057\u3001\u30e9\u30f3\u30c0\u30e0\u306a\u6570\u3092\u4f7f\u3063\u3066[min_amount, max_amount]\u306e\u7bc4\u56f2\u5185\u3067num-1\u500b\u306e\u91d1\u984d\u3092\u751f\u6210\u3057\u3001\u3053\u308c\u3089\u306e\u91d1\u984d\u3092\u6607\u9806\u306b\u4e26\u3079\u66ff\u3048\u3001\u5148\u982d\u3068\u6700\u5f8c\u306b0\u3068total_amount\u3092\u8ffd\u52a0\u3057\u3066\u3001\u8d64\u5305\u91d1\u984d\u30ea\u30b9\u30c8\u3092\u5f97\u308b\u3002<\/li>\n<li>User\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u5c5e\u6027\u3068\u30e1\u30bd\u30c3\u30c9\u3092\u542b\u3081\u308b\u3002<\/li>\n<li>\u5c5e\u6027\uff1a\u30e6\u30fc\u30b6\u30fc\u540d\u3001\u6b8b\u9ad8<\/li>\n<li>\u65b9\u6cd5\uff1a\u521d\u671f\u5316\u65b9\u6cd5\u3001\u304a\u5e74\u7389\u3092\u914d\u308b\u65b9\u6cd5\u3002<\/li>\n<li>\u521d\u671f\u5316\u30e1\u30bd\u30c3\u30c9\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u6b8b\u9ad8\u3092\u53d7\u3051\u53d6\u308a\u3001\u6b8b\u9ad8\u3092\u5c5e\u6027\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/li>\n<li>\u8d64\u3075\u304f\u306e\u65b9\u6cd5\uff1a\u8d64\u3075\u304f\u306e\u91d1\u984d\u30ea\u30b9\u30c8\u306b\u57fa\u3065\u304d\u3001\u30e9\u30f3\u30c0\u30e0\u6570\u3092\u751f\u6210\u3057\u3066\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5024\u3092\u53d6\u5f97\u3057\u3001\u5bfe\u5fdc\u3059\u308b\u91d1\u984d\u3092\u8d64\u3075\u304f\u91d1\u984d\u3068\u3057\u3066\u53d6\u308a\u51fa\u3057\u3001\u6b8b\u9ad8\u304b\u3089\u305d\u306e\u91d1\u984d\u3092\u5f15\u304f\u3002<\/li>\n<li>Group\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u5c5e\u6027\u3068\u30e1\u30bd\u30c3\u30c9\u3092\u542b\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li>\u5c5e\u6027\uff1a\u30e1\u30f3\u30d0\u30fc\u30ea\u30b9\u30c8\u3001\u304a\u5e74\u7389\u53d7\u53d6\u8005<\/li>\n<li>\u624b\u9806\uff1a\u521d\u671f\u5316\u306e\u65b9\u6cd5\u3001\u30b0\u30eb\u30fc\u30d7\u30e1\u30f3\u30d0\u30fc\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3001\u305d\u3057\u3066\u304a\u5e74\u7389\u3092\u53d7\u3051\u53d6\u308b\u65b9\u6cd5\u3002<\/li>\n<li>\u521d\u671f\u5316\u30e1\u30bd\u30c3\u30c9\u3067\u3001\u7a7a\u306e\u30b0\u30eb\u30fc\u30d7\u30e1\u30f3\u30d0\u30fc\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u3001\u8cde\u91d1\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5c5e\u6027\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/li>\n<li>\u30b0\u30eb\u30fc\u30d7\u30e1\u30f3\u30d0\u30fc\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\uff1a\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u6b8b\u9ad8\u3092\u53d7\u3051\u53d6\u308a\u3001User\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3066\u3001\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30b0\u30eb\u30fc\u30d7\u30e1\u30f3\u30d0\u30fc\u30ea\u30b9\u30c8\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<li>\u8d64\u5305\u3092\u624b\u306b\u5165\u308c\u308b\u65b9\u6cd5\uff1a\u8d64\u5305\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u8d64\u5305\u91d1\u984d\u30ea\u30b9\u30c8\u751f\u6210\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u3001\u305d\u306e\u30ea\u30b9\u30c8\u3092\u8d64\u5305\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5c5e\u6027\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002\u6b21\u306b\u3001\u30b0\u30eb\u30fc\u30d7\u30e1\u30f3\u30d0\u30fc\u30ea\u30b9\u30c8\u3092\u30eb\u30fc\u30d7\u3057\u3001\u5404\u30e6\u30fc\u30b6\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u8d64\u5305\u3092\u767a\u884c\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/li>\n<li>&#8211; \u30c6\u30b9\u30c8\u95a2\u6570\u3092\u4f5c\u6210\u3057\u3066\u3001Group\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3057\u3001\u30e1\u30f3\u30d0\u30fc\u3092\u8ffd\u52a0\u3057\u3001\u304a\u5e74\u7389\u3092\u53d6\u5f97\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ol>\n<p>\u4ee5\u4e0b\u306f\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">import<\/span> random\r\n\r\n<span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">RedPacket<\/span>:\r\n    <span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">__init__<\/span>(<span class=\"hljs-params\">self, total_amount, num<\/span>):\r\n        self.total_amount = total_amount\r\n        self.num = num\r\n        self.redpacket_list = self.generate_redpacket_list()\r\n        \r\n    <span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">generate_redpacket_list<\/span>(<span class=\"hljs-params\">self<\/span>):\r\n        min_amount = <span class=\"hljs-number\">0.01<\/span>\r\n        max_amount = self.total_amount \/ self.num * <span class=\"hljs-number\">2<\/span>\r\n        amounts = <span class=\"hljs-built_in\">sorted<\/span>(random.uniform(min_amount, max_amount) <span class=\"hljs-keyword\">for<\/span> _ <span class=\"hljs-keyword\">in<\/span> <span class=\"hljs-built_in\">range<\/span>(self.num - <span class=\"hljs-number\">1<\/span>))\r\n        amounts = [<span class=\"hljs-number\">0<\/span>] + amounts + [self.total_amount]\r\n        <span class=\"hljs-keyword\">return<\/span> amounts\r\n\r\n<span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">User<\/span>:\r\n    <span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">__init__<\/span>(<span class=\"hljs-params\">self, username, balance<\/span>):\r\n        self.username = username\r\n        self.balance = balance\r\n        \r\n    <span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">send_redpacket<\/span>(<span class=\"hljs-params\">self, redpacket<\/span>):\r\n        amount = random.choice(redpacket.redpacket_list)\r\n        self.balance -= amount\r\n        <span class=\"hljs-built_in\">print<\/span>(<span class=\"hljs-string\">f\"<span class=\"hljs-subst\">{self.username}<\/span> \u53d1\u4e86\u4e00\u4e2a <span class=\"hljs-subst\">{amount}<\/span> \u5143\u7684\u7ea2\u5305\"<\/span>)\r\n\r\n<span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">Group<\/span>:\r\n    <span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">__init__<\/span>(<span class=\"hljs-params\">self, redpacket<\/span>):\r\n        self.members = []\r\n        self.redpacket = redpacket\r\n        \r\n    <span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">add_member<\/span>(<span class=\"hljs-params\">self, username, balance<\/span>):\r\n        user = User(username, balance)\r\n        self.members.append(user)\r\n        \r\n    <span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">get_redpacket<\/span>(<span class=\"hljs-params\">self<\/span>):\r\n        <span class=\"hljs-keyword\">for<\/span> member <span class=\"hljs-keyword\">in<\/span> self.members:\r\n            member.send_redpacket(self.redpacket)\r\n\r\n<span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">test<\/span>():\r\n    redpacket = RedPacket(<span class=\"hljs-number\">100<\/span>, <span class=\"hljs-number\">10<\/span>)\r\n    group = Group(redpacket)\r\n    group.add_member(<span class=\"hljs-string\">\"User1\"<\/span>, <span class=\"hljs-number\">100<\/span>)\r\n    group.add_member(<span class=\"hljs-string\">\"User2\"<\/span>, <span class=\"hljs-number\">200<\/span>)\r\n    group.add_member(<span class=\"hljs-string\">\"User3\"<\/span>, <span class=\"hljs-number\">150<\/span>)\r\n    group.get_redpacket()\r\n\r\ntest()\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u3001WeChat\u306e\u304a\u5e74\u7389\u3092\u6a21\u5023\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u304a\u308a\u3001\u304a\u5e74\u7389\u306e\u91d1\u984d\u306f\u30e9\u30f3\u30c0\u30e0\u306b\u751f\u6210\u3055\u308c\u3001\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u8abf\u6574\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u3092\u4f7f\u3063\u3066WeChat\u306e\u8d64\u3044\u5c01\u7b52\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3001\u6b21\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002 RedPacket\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u5c5e\u6027\u3068\u30e1\u30bd\u30c3\u30c9\u3092\u542b\u3081\u307e\u3059\u3002 \u5c5e\u6027\uff1a\u304a\u5e74\u7389\u7dcf\u984d\u3001\u304a\u5e74\u7389\u306e\u6570\u3001\u304a\u5e74\u7389\u30ea\u30b9\u30c8  [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-27938","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>Python\u3092\u4f7f\u7528\u3057\u3066\u3001WeChat\u3067\u8d64\u3044\u5c01\u7b52\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30c8\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u304b\uff1f - 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\/ja\/blog\/python\u3092\u4f7f\u7528\u3057\u3066\u3001wechat\u3067\u8d64\u3044\u5c01\u7b52\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u30b7\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python\u3092\u4f7f\u7528\u3057\u3066\u3001WeChat\u3067\u8d64\u3044\u5c01\u7b52\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30c8\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u304b\uff1f\" \/>\n<meta property=\"og:description\" content=\"Python\u3092\u4f7f\u3063\u3066WeChat\u306e\u8d64\u3044\u5c01\u7b52\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3001\u6b21\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002 RedPacket\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u5c5e\u6027\u3068\u30e1\u30bd\u30c3\u30c9\u3092\u542b\u3081\u307e\u3059\u3002 \u5c5e\u6027\uff1a\u304a\u5e74\u7389\u7dcf\u984d\u3001\u304a\u5e74\u7389\u306e\u6570\u3001\u304a\u5e74\u7389\u30ea\u30b9\u30c8 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/python\u3092\u4f7f\u7528\u3057\u3066\u3001wechat\u3067\u8d64\u3044\u5c01\u7b52\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u30b7\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-18T07:00:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-22T08:24:08+00:00\" \/>\n<meta name=\"author\" content=\"\u6d77\u6597, \u8475\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6d77\u6597, \u8475\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81wechat%e3%81%a7%e8%b5%a4%e3%81%84%e5%b0%81%e7%ad%92%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%82%92%e3%82%b7\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81wechat%e3%81%a7%e8%b5%a4%e3%81%84%e5%b0%81%e7%ad%92%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%82%92%e3%82%b7\/\",\"name\":\"Python\u3092\u4f7f\u7528\u3057\u3066\u3001WeChat\u3067\u8d64\u3044\u5c01\u7b52\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30c8\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u304b\uff1f - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-18T07:00:57+00:00\",\"dateModified\":\"2024-03-22T08:24:08+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81wechat%e3%81%a7%e8%b5%a4%e3%81%84%e5%b0%81%e7%ad%92%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%82%92%e3%82%b7\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81wechat%e3%81%a7%e8%b5%a4%e3%81%84%e5%b0%81%e7%ad%92%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%82%92%e3%82%b7\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81wechat%e3%81%a7%e8%b5%a4%e3%81%84%e5%b0%81%e7%ad%92%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%82%92%e3%82%b7\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\u3092\u4f7f\u7528\u3057\u3066\u3001WeChat\u3067\u8d64\u3044\u5c01\u7b52\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30c8\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u304b\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6\",\"name\":\"\u6d77\u6597, \u8475\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g\",\"caption\":\"\u6d77\u6597, \u8475\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/kaitoaoi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81wechat%e3%81%a7%e8%b5%a4%e3%81%84%e5%b0%81%e7%ad%92%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%82%92%e3%82%b7\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python\u3092\u4f7f\u7528\u3057\u3066\u3001WeChat\u3067\u8d64\u3044\u5c01\u7b52\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30c8\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u304b\uff1f - 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\/ja\/blog\/python\u3092\u4f7f\u7528\u3057\u3066\u3001wechat\u3067\u8d64\u3044\u5c01\u7b52\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u30b7\/","og_locale":"ja_JP","og_type":"article","og_title":"Python\u3092\u4f7f\u7528\u3057\u3066\u3001WeChat\u3067\u8d64\u3044\u5c01\u7b52\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30c8\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u304b\uff1f","og_description":"Python\u3092\u4f7f\u3063\u3066WeChat\u306e\u8d64\u3044\u5c01\u7b52\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3001\u6b21\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002 RedPacket\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u5c5e\u6027\u3068\u30e1\u30bd\u30c3\u30c9\u3092\u542b\u3081\u307e\u3059\u3002 \u5c5e\u6027\uff1a\u304a\u5e74\u7389\u7dcf\u984d\u3001\u304a\u5e74\u7389\u306e\u6570\u3001\u304a\u5e74\u7389\u30ea\u30b9\u30c8 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/python\u3092\u4f7f\u7528\u3057\u3066\u3001wechat\u3067\u8d64\u3044\u5c01\u7b52\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u30b7\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-18T07:00:57+00:00","article_modified_time":"2024-03-22T08:24:08+00:00","author":"\u6d77\u6597, \u8475","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u6d77\u6597, \u8475","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81wechat%e3%81%a7%e8%b5%a4%e3%81%84%e5%b0%81%e7%ad%92%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%82%92%e3%82%b7\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81wechat%e3%81%a7%e8%b5%a4%e3%81%84%e5%b0%81%e7%ad%92%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%82%92%e3%82%b7\/","name":"Python\u3092\u4f7f\u7528\u3057\u3066\u3001WeChat\u3067\u8d64\u3044\u5c01\u7b52\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30c8\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u304b\uff1f - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-18T07:00:57+00:00","dateModified":"2024-03-22T08:24:08+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81wechat%e3%81%a7%e8%b5%a4%e3%81%84%e5%b0%81%e7%ad%92%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%82%92%e3%82%b7\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81wechat%e3%81%a7%e8%b5%a4%e3%81%84%e5%b0%81%e7%ad%92%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%82%92%e3%82%b7\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81wechat%e3%81%a7%e8%b5%a4%e3%81%84%e5%b0%81%e7%ad%92%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%82%92%e3%82%b7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Python\u3092\u4f7f\u7528\u3057\u3066\u3001WeChat\u3067\u8d64\u3044\u5c01\u7b52\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u30b7\u30df\u30e5\u30ec\u30fc\u30c8\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u304b\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6","name":"\u6d77\u6597, \u8475","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g","caption":"\u6d77\u6597, \u8475"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/kaitoaoi\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81wechat%e3%81%a7%e8%b5%a4%e3%81%84%e5%b0%81%e7%ad%92%e3%82%92%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%82%92%e3%82%b7\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/27938","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=27938"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/27938\/revisions"}],"predecessor-version":[{"id":110644,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/27938\/revisions\/110644"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=27938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=27938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=27938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}