{"id":23951,"date":"2019-12-22T08:00:20","date_gmt":"2019-12-21T23:00:20","guid":{"rendered":"https:\/\/www.techscore.com\/blog\/?p=23951"},"modified":"2019-12-10T11:16:52","modified_gmt":"2019-12-10T02:16:52","slug":"algorave-python","status":"publish","type":"post","link":"https:\/\/www.techscore.com\/blog\/2019\/12\/22\/algorave-python\/","title":{"rendered":"Python\u3067\u59cb\u3081\u308b\u30a2\u30eb\u30b4\u30ec\u30a4\u30f4\u5165\u9580"},"content":{"rendered":"<p>\u3053\u308c\u306f <a href=\"https:\/\/www.techscore.com\/blog\/2019\/11\/21\/techscore-advent-calendar-2019\/\">\ud83d\ude3aTECHSCORE Advent Calendar 2019\ud83d\ude3a<\/a>\u306e22\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002<\/p>\n<h2>Introduction(\u306f\u3058\u3081\u306b)<\/h2>\n<h3>\u30a2\u30eb\u30b4\u30ec\u30a4\u30f4\u3068\u306f<\/h3>\n<div>\n<div>\n<p>\u30a2\u30eb\u30b4\u30ec\u30a4\u30f4(Algorave)\u3068\u3044\u3046\u3082\u306e\u3092\u3054\u5b58\u3058\u3067\u3057\u3087\u3046\u304b\uff1f\u30a2\u30eb\u30b4\u30ec\u30a4\u30f4\u3068\u306fAlgorithm(\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0)\u3068Rave(\u7686\u3067\u697d\u3057\u3080\u3053\u3068)\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u9020\u8a9e\u3067\u3059\u3002\u97f3\u697d\u3084\u6620\u50cf\u3092\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u5373\u8208\u7684\u306b\u4f5c\u308a\u4e0a\u3052\u308b\u30e9\u30a4\u30d6\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3068\u3044\u3046\u6280\u8853\u3092\u4f7f\u7528\u3057\u3001\u30e9\u30a4\u30d6\u30b3\u30fc\u30c0\u30fc\u304c\u69d8\u3005\u306a\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304b\u3089\u751f\u6210\u3055\u308c\u305f\u97f3\u697d\u3092\u6d41\u3059\u30a4\u30d9\u30f3\u30c8\u306e\u3053\u3068\u3092\u6307\u3057\u307e\u3059\u30022011\u5e74\u30a4\u30ae\u30ea\u30b9\u3067\u6700\u521d\u306e\u30a4\u30d9\u30f3\u30c8\u304c\u958b\u50ac\u3055\u308c\u3001\u73fe\u5728\u4e16\u754c\u3067\u5e83\u304c\u308a\u3064\u3064\u3042\u308a\u307e\u3059\u3002\u65e5\u672c\u3067\u3082\u5ea6\u3005\u958b\u50ac\u3055\u308c\u3066\u3044\u307e\u3059(<a href=\"https:\/\/algorave.tokyo\/\">algorave.tokyo<\/a>)<\/p>\n<h3><strong><br \/>\n<\/strong>\u30e9\u30a4\u30d6\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3068\u306f<\/h3>\n<\/div>\n<\/div>\n<p>\u30e9\u30a4\u30d6\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3068\u306f\u5373\u8208\u7684\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304d\/\u7de8\u96c6\u3057\u306a\u304c\u3089\u3001\u97f3\u697d\u3084\u6620\u50cf\u3092\u594f\u3067\u308b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30fb\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u3053\u3068\u3067\u3059\u3002\u4f5c\u308a\u3053\u3093\u3060\u3082\u306e\u3067\u306f\u306a\u304f\u3001\u5076\u7136\u6027\u3084\u5373\u8208\u6027\u3092\u697d\u3057\u3080\u3082\u306e\u3067\u30d1\u30d5\u30a9\u30fc\u30df\u30f3\u30b0\u30a2\u30fc\u30c8\u306b\u304a\u3051\u308b\u65b0\u305f\u306a\u8868\u73fe\u5f62\u614b\u3068\u3057\u3066\u6ce8\u76ee\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3068\u306f\u3044\u3063\u3066\u3082\u306a\u304b\u306a\u304b\u60f3\u50cf\u3057\u3065\u3089\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3053\u308c\u304b\u3089\u7d39\u4ecb\u3059\u308b<a href=\"https:\/\/foxdot.org\/\">FoxDot\u306e\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\u3067\u30c7\u30e2\u52d5\u753b\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u4e00\u5ea6\u898b\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002\u304d\u3063\u3068\u8a66\u3057\u3066\u307f\u305f\u304f\u306a\u308b\u306f\u305a\u3067\u3059\u3002<br \/>\n\u307e\u305f\u3001PyConJP2019\u3067\u3082\u7d39\u4ecb\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3053\u3061\u3089\u3082\u3054\u53c2\u7167\u304f\u3060\u3055\u3044(<a href=\"https:\/\/pycon.jp\/2019\/sessions?sessionId=209\">Python\u3067\u30e9\u30a4\u30d6\u3092\u3057\u3088\u3046\u00a0-FoxDot\u3092\u4f7f\u3063\u305f\u65b0\u6642\u4ee3\u306ePython\u6d3b\u7528\u6cd5-<\/a>)<\/p>\n<div><\/div>\n<h2 class=\"midashigo\" title=\"requirement\">Requirement(\u74b0\u5883)<\/h2>\n<div>\n<div>\u3067\u306f\u65e9\u901f\u30e9\u30a4\u30d6\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u59cb\u3081\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u30e9\u30a4\u30d6\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u74b0\u5883\u3068\u3057\u3066TidalCycles\u3084FoxDot,Sonic Pi\u306a\u3069\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u304c\u3001\u4eca\u56de\u306fSuperCollider\u3068FoxDot\u3092\u4f7f\u3044\u307e\u3059\u3002SuperCollider\u3068\u306f\u5f37\u529b\u306a\u97f3\u97ff\u5408\u6210\u30a8\u30f3\u30b8\u30f3\u3067\u3042\u308a\u3001FoxDot\u306fSuperCollider\u3092\u64cd\u4f5c\u3059\u308bPython\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002<\/div>\n<div>\u56f3\u3067\u8868\u3059\u3068\u3053\u306e\u3088\u3046\u306a\u69cb\u6210\u306b\u306a\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n<div><a href=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/12\/supercolliderr-scaled.png\" rel=\"facebox\" rel=\"attachment wp-att-24238\"><img loading=\"lazy\" class=\"aligncenter wp-image-24238 size-large\" src=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/12\/supercolliderr-1024x189.png\" alt=\"\" width=\"530\" height=\"98\" srcset=\"https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/12\/supercolliderr-1024x189.png 1024w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/12\/supercolliderr-300x55.png 300w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/12\/supercolliderr-768x142.png 768w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/12\/supercolliderr-1536x283.png 1536w, https:\/\/www.techscore.com\/blog\/wp\/wp-content\/uploads\/2019\/12\/supercolliderr-2048x377.png 2048w\" sizes=\"(max-width: 530px) 100vw, 530px\" \/><\/a><\/div>\n<div><\/div>\n<div>\n<div>\n<h2>\u00a0Install(\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb)<\/h2>\n<div>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3082\u306e\u306f\u56db\u7a2e\u985e\u3060\u3051\u3067\u3059\u3002<\/div>\n<ul>\n<li>Python(3\u7cfb\u63a8\u5968,2\u7cfb\u3067\u3082\u52d5\u304d\u307e\u3059)<\/li>\n<li>Git<\/li>\n<li><a href=\"https:\/\/supercollider.github.io\/download\">SuperCollider<\/a>(\u30d0\u30fc\u30b8\u30e7\u30f33.8\u4ee5\u4e0a)<\/li>\n<li><a href=\"https:\/\/pypi.org\/project\/FoxDot\/\">FoxDot<\/a>(pip\u3084Anaconda\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd)<\/li>\n<\/ul>\n<div>\n<p>\u8a73\u3057\u3044\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306f<a href=\"https:\/\/foxdot.org\/installation\/\">\u516c\u5f0f\u30da\u30fc\u30b8<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div>\n<h2>StartUp(\u7acb\u3061\u4e0a\u3052)<\/h2>\n<div>\u7acb\u3061\u4e0a\u3052\u3082\u3068\u3066\u3082\u7c21\u5358\u3067\u3059\u3002\u4e09\u3064\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u7acb\u3061\u4e0a\u3052\u3066\u3044\u304d\u307e\u3059\u3002<\/div>\n<ol>\n<li>SuperCollider\u3092\u8d77\u52d5\u3059\u308b\u3002<\/li>\n<li>SuperCollider\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089FoxDot\u3068\u901a\u4fe1\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3002<br \/>\n<span class=\"lang:default decode:true crayon-inline\">&gt;&gt;&gt; FoxDot.start<\/span><\/li>\n<li>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3092\u7acb\u3061\u4e0a\u3052FoxDot\u3092\u8d77\u52d5\u3002<br \/>\n<span class=\"lang:default decode:true crayon-inline\">$ python -m FoxDot<\/span><\/li>\n<\/ol>\n<div>FoxDot\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u958b\u304d\u6e96\u5099\u5b8c\u4e86\u3067\u3059\u3002<\/div>\n<\/div>\n<div><\/div>\n<div><\/div>\n<div>\n<h2>\u00a0Getting Started(\u5165\u9580)<\/h2>\n<h3>\u97f3\u306e\u518d\u751f<\/h3>\n<p>\u3067\u306f\u65e9\u901f\u97f3\u3092\u9cf4\u3089\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002FoxDot\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u306b<\/p>\n<div>\n<pre class=\"lang:python decode:true\">Clock.bpm\u00a0=\u00a060\np1\u00a0&gt;&gt;\u00a0pluck()<\/pre>\n<\/div>\n<p>\u3068\u5165\u529b\u3057\u3001<span class=\"lang:default decode:true crayon-inline \">CTRL+ENTER<\/span> \u3067\u5b9f\u884c\u3057\u307e\u3059\u3002\u3059\u308b\u3068\u5f26\u3092\u306f\u3058\u3044\u305f\u3088\u3046\u306a\u97f3(\u30d7\u30e9\u30c3\u30af\u97f3)\u304c\u9cf4\u308b\u306f\u305a\u3067\u3059\u3002\u3053\u308c\u306f1\u884c\u76ee\u3067\u30c6\u30f3\u30dd\u3092\u6307\u5b9a\u3057\u3001\u4e8c\u884c\u76ee\u3067\u30e1\u30ed\u30c7\u30a3\u3092\u594f\u3067\u3066\u3044\u307e\u3059\u3002pluck\u306e\u5f15\u6570\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u30674\u3064\u6253\u3061\u3067\u97f3\u304c\u9cf4\u3063\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002\u307e\u305f\u3001pluck\u304c\u97f3\u8272\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002bass\u3084star,saw\u306a\u3069\u306b\u5909\u66f4\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u97f3\u8272\u304c\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<h3>\u97f3\u306e\u505c\u6b62<\/h3>\n<div>\n<p>\u97f3\u3092\u6b62\u3081\u308b\u3068\u304d\u306b\u306f<span class=\"lang:default decode:true crayon-inline\">p1.stop()<\/span> \u3067\u6307\u5b9a\u3057\u305f\u97f3\u304c\u505c\u6b62\u3057\u3001<span class=\"lang:default decode:true crayon-inline\">Ctrl+.<\/span> \u3067\u3059\u3079\u3066\u306e\u97f3\u304c\u505c\u6b62\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<h3>\u97f3\u306e\u5909\u66f4<\/h3>\n<\/div>\n<div>\n<div>\u97f3\u306e\u9ad8\u3055\u3084\u9577\u3055,\u632f\u5e45\u306a\u3069\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u97f3\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/div>\n<div>\u6700\u521d\u306e\u5f15\u6570\u306f\u97f3\u306e\u9ad8\u3055\u3092\u8868\u3057\u3001\u660e\u793a\u7684\u306b\u547d\u540d\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/div>\n<div>\n<pre class=\"lang:python decode:true\">p1 &gt;&gt; pluck([0,2,4], dur=[1,1\/2,1\/2], amp=[1,3\/4,3\/4])<\/pre>\n<\/div>\n<div>degree : \u97f3\u7a0b\u304c\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002(\u547d\u540d\u3059\u308b\u5fc5\u8981\u306a\u3057)<br \/>\ndur : \u97f3\u306e\u9577\u3055\u304c\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002(1:\u56db\u5206\u97f3\u7b26,1\/2:\u516b\u5206\u97f3\u7b26)<br \/>\namp : \u97f3\u91cf\u304c\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/div>\n<\/div>\n<div>\n<div><\/div>\n<h3>\u97f3\u306e\u30b0\u30eb\u30fc\u30d7\u5316<\/h3>\n<p>\u307e\u305f\u8907\u6570\u306e\u5024\u3092\u62ec\u5f27\u3067\u56f2\u3080\u3053\u3068\u306b\u3088\u3063\u3066\u97f3\u3092\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<div>\n<pre class=\"lang:python decode:true\">b1 &gt;&gt; bass([(0,9),(3,7)], dur=4, pan=(-1,1))\n<\/pre>\n<\/div>\n<div>[] : \u89d2\u62ec\u5f27\u3067\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u3068\u97f3\u3092\u5206\u5272\u3057\u9023\u7b26\u3092\u8868\u73fe\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/div>\n<div>() : \u4e38\u62ec\u5f27\u3067\u30b0\u30eb\u30fc\u30d7\u5316\u3059\u308b\u3068\u540c\u6642\u306b\u9cf4\u308a\u548c\u97f3\u3092\u9cf4\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\npan : \u97f3\u306eLR\u30c1\u30e3\u30f3\u30cd\u30eb -1:L100%,1:R100%((-1,1)\u306a\u306e\u3067\u4e00\u3064\u76ee\u306e\u548c\u97f3\u304c\u5de6\u304b\u3089\u3001\u4e8c\u3064\u76ee\u306f\u53f3\u304b\u3089\u805e\u3053\u3048\u307e\u3059)<\/div>\n<h3>\u30c9\u30e9\u30e0<\/h3>\n<p>\u6b21\u306e\u3088\u3046\u306b\u30c9\u30e9\u30e0\u3082\u6f14\u594f\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<\/div>\n<div>\n<div>\n<pre class=\"lang:python decode:true\">d1 &gt;&gt; play(\"x-o-\")<\/pre>\n<\/div>\n<div>x : \u30d0\u30b9\u30c9\u30e9\u30e0<\/div>\n<div>o : \u30b9\u30cd\u30a2\u30c9\u30e9\u30e0<\/div>\n<div>- : \u30af\u30ed\u30fc\u30ba\u30c9\u30cf\u30a4\u30cf\u30c3\u30c8<\/div>\n<div>= : \u30aa\u30fc\u30d7\u30f3\u30cf\u30a4\u30cf\u30c3\u30c8<br \/>\n\u306a\u3069\u306a\u3069\u305f\u304f\u3055\u3093\u3042\u308a\u307e\u3059\u304c\u3001\u4eca\u56de\u306f\u7701\u7565\u3057\u307e\u3059\u3002<\/div>\n<\/div>\n<div>\n<div><\/div>\n<div>\u30d4\u30a2\u30ce\u3068\u540c\u69d8\u3001\u97f3\u306e\u5909\u66f4\u3084\u540c\u6642\u306b\u518d\u751f\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/div>\n<div>\n<pre class=\"lang:python decode:true\">d1 &gt;&gt; play(\"xxox\")\nd2 &gt;&gt; play(\"---(-=)\", pan=0.5)<\/pre>\n<\/div>\n<div><\/div>\n<div>\u3053\u306e\u3088\u3046\u306a\u611f\u3058\u3067DTM\u306e\u3088\u3046\u306b\u6253\u3061\u8fbc\u3080\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/div>\n<div>\n<pre class=\"lang:python decode:true\">d1 &gt;&gt;(\"x x x x \")\nd2 &gt;&gt;(\"\u00a0\u00a0o\u00a0\u00a0\u00a0o \")\nd3 &gt;&gt;(\"=-------\")<\/pre>\n<\/div>\n<div><\/div>\n<div>\u307e\u305f\u30d4\u30a2\u30ce\u3068\u540c\u69d8\u30b0\u30eb\u30fc\u30d7\u5316\u3082\u3067\u304d\u307e\u3059\u3002<\/div>\n<div>\n<pre class=\"lang:python decode:true\">d1 &gt;&gt; play(\"x[--]o(=[-o])\")<\/pre>\n<\/div>\n<\/div>\n<div><\/div>\n<div>\n<h2>Pattern(\u30d1\u30bf\u30fc\u30f3)<\/h2>\n<div>\u30a2\u30eb\u30b4\u30ec\u30a4\u30f4\u3068\u3044\u3046\u304b\u3089\u306b\u306f\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304b\u3089\u97f3\u697d\u3092\u751f\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u7d44\u3080\u4e0a\u3067\u3088\u304f\u30ea\u30b9\u30c8\u306e\u64cd\u4f5c\u306a\u3069\u3092\u4f7f\u3046\u306e\u3067\u3059\u304cFoxDot\u7279\u6709\u306e\u66f8\u304d\u65b9\u3082\u3042\u308b\u306e\u3067\u5c11\u3057\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u307e\u305a\u4e00\u822c\u7684\u306bPython\u3067\u7528\u3044\u3089\u308c\u308blist\u3067\u3059\u304c\u3001\u3082\u3057\u5168\u3066\u306e\u6570\u306b\u540c\u3058\u6570\u3092\u304b\u3051\u305f\u3044\u5834\u5408\u3069\u3046\u3057\u307e\u3059\u304b\uff1f<\/div>\n<div>\n<pre class=\"lang:python decode:true\">&gt;&gt;\u00a0print([1,2,3]\u00a0*2)<\/pre>\n<\/div>\n<div>\u7d50\u679c\u306f\u3069\u3046\u3057\u3087\u3046\u3002\u304d\u3063\u3068\u60f3\u50cf\u3057\u3066\u3044\u305f\u3082\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u3082\u3057\u30ea\u30b9\u30c8\u5185\u306e\u5168\u3066\u306e\u8981\u7d20\u306b\u6570\u5b57\u3092\u304b\u3051\u305f\u3044\u306e\u3067\u3042\u308c\u3070Python\u3067\u306ffor\u6587\u3084numpy\u3092\u4f7f\u3046\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u304c,FoxDot\u306b\u306f\"pattern\"\u3068\u547c\u3070\u308c\u308b\u30af\u30e9\u30b9\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u7528\u3044\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3088\u308a\u67d4\u8edf\u306b\u30ea\u30b9\u30c8\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f7f\u7528\u3059\u308b\u306b\u306f\u30ea\u30b9\u30c8\u306e\u524d\u306b\"P\"\u3068\u66f8\u304d\u307e\u3059\u3002<\/div>\n<div>\n<pre class=\"lang:python decode:true\">&gt;&gt;&gt;\u00a0print([1,2,3]\u00a0*2)\n[1,\u00a02,\u00a03,\u00a01,\u00a02,\u00a03]\n>&gt;&gt;\u00a0print(P[1,2,3]\u00a0*2)\nP[2,\u00a04,\u00a06]<\/pre>\n<\/div>\n<div>\u3053\u308c\u3092\u7528\u3044\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u4f8b\u3048\u30702\u30683\u3092\u4ea4\u4e92\u306b\u304b\u3051\u305f\u308a\u3001\u306a\u304b\u306a\u304b\u66f8\u304d\u3065\u3089\u3044\u30b3\u30fc\u30c9\u3082\u7c21\u5358\u306b\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/div>\n<div>\n<pre class=\"lang:python decode:true\">&gt;&gt;&gt;\u00a0print(P[1,2,3]*[2,3])\nP[2,\u00a06,\u00a06,\u00a03,\u00a04,\u00a09]\n<\/pre>\n<\/div>\n<h2>Summary(\u3055\u3044\u3054\u306b)<\/h2>\n<div>\n<p>\u3044\u304b\u304c\u3060\u3063\u305f\u3067\u3057\u3087\u3046\u304b\u3002\u4eca\u56de\u306e\u8a18\u4e8b\u3067\u306f\u5c0e\u5165\u304b\u3089FoxDot\u3067\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u57fa\u790e\u307e\u3067\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u57fa\u790e\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u3089\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u9762\u767d\u3044\u30d1\u30bf\u30fc\u30f3\u3092\u751f\u307f\u51fa\u305b\u307e\u3059\u3002\u662f\u975e\u7686\u3055\u3093\u3082FoxDot\u3092\u306f\u3058\u3081Algorave\u3092\u76db\u308a\u4e0a\u3052\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002Thanks\u263a<\/p>\n<\/div>\n<\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u308c\u306f \ud83d\ude3aTECHSCORE Advent Calendar 2019\ud83d\ude3a\u306e22\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002<br \/><a href=\"https:\/\/www.techscore.com\/blog\/2019\/12\/22\/algorave-python\/\">\u7d9a\u304d\u3092\u8aad\u3080...<\/a><\/p>\n","protected":false},"author":89,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[332,317,18],"tags":[141,341,342,120,343],"_links":{"self":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/23951"}],"collection":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/users\/89"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/comments?post=23951"}],"version-history":[{"count":14,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/23951\/revisions"}],"predecessor-version":[{"id":24477,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/23951\/revisions\/24477"}],"wp:attachment":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/media?parent=23951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/categories?post=23951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/tags?post=23951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}