python
ãããããã¤ã¼ããè¦ãããã®ã§å ã®è«æãèªãã ãå®è£ ãã¦ã¿ãããã¾ããä¸çä¸åç´ãª? ã½ã¼ãã¢ã«ã´ãªãºã ãfor i=1..n: for j=1..n: if a[i]
1æ23æ¥é ã«åºã pip 21.0 ã§ã¤ãã«Python 2ç³»ã®ãµãã¼ããåããã¦ã¤ã³ã¹ãã¼ã«ã§ããªããªãã¾ãã https://pip.pypa.io/en/stable/news/ pip 21.0 Deprecations and Removalsstackoverflow.comhttps://bootstrap.pypa.io/2.7/get-pip.py ãªã©ã«å¤ããã¼ã¸â¦
åã«ãããªãã¤ã¼ãããããã¯ã½ã¨ã ãããã©ãã¼ãããã¦ããæ°ã§å®ç¾©ããããã¯ã½ã¨ã æ°â ç¡éç¿(id:sucrose)@29æç (@Scaled_Wurm) 2016å¹´4æ1æ¥ é£ä¼ã§æéããã£ãã®ã§Twitter APIã«æ £ããã¤ãã§ã«è¨ç®ãã¦ã¿ã ãã¯ã½ã¨ã ã¨ã¯ ããããããªããã©ãTwâ¦
ååã®è¨äºã§ã¯ã¦ãªããã¯ãã¼ã¯ä»¶æ°ãPythonã§åéããã®ã§æ¹æ³ãã¡ã¢ãã¦ãã sucrose.hatenablog.comAPIã®ããã¥ã¡ã³ãã¯ãã ã¯ã¦ãªããã¯ãã¼ã¯ä»¶æ°åå¾API - Hatena Developer Center ä¸è¨ã®ããã«ã調ã¹ããURLãURLã¨ã³ã³ã¼ããã¦ãurl=調ã¹ããURLâ¦
Matplotlibã«xkcd風ã«ã°ã©ããããããããæ©è½ããããããã®ã§è©¦ãã¦ã¿ã xkcd - Wikipedia xkcdã¯è±èªã®Webã³ããã¯ãµã¤ãã§æ¬ã®è«ã¨ãã®ãµã¤ãã§ç¿»è¨³ããã¦ãã®ããã¾ã«è¦ããã æ¬ã®è«: xkcd 1526: ãã©ã·ãé»å®³è¬ Matplotlib 1.3ãã以ä¸ã®é¢æ°ãå®è¡â¦
paizaã®åé¡ã§15ããºã«ã解ãããã°ã©ã ãæ¸ãã¾ãã ä¸ããããé ç½®ãã§ããã ãå°ãªãã¹ã©ã¤ãåæ°ã§è§£ãåé¡ã§ã(å®è¡æéæéå¶éãã) ã¬ãã¨ãããã®å½éããã°ã©ãã³ã°é¸æ権 | paizaãªã³ã©ã¤ã³ããã«ã½ã³5+ 15ããºã« 15ããºã« - Wikipedia 1ãã15ã®â¦
paizaãã¤ã©ã¹ãä»ãã§ããã°ã©ãã³ã°ã®åé¡ãåºãã¦ããpaizaãªã³ã©ã¤ã³ããã«ã½ã³ã5åç®ã«ãªãã¾ãã ååãããããé£æ度ãä¸ãã£ã代ããã«ãã¤ã©ã¹ãã¨ãã¹ãã¼ãªã¼ã¨ãã«åã注ãå§ãã¦ããã¿ããã§ã(ï¼) ãªãã¨ã¹ãã¼ãªã¼ã®åå²ãããã¾ããã³ã¬çâ¦
ããããããããã¨ãã«äººæ°ãå¤ãã¨ããããå¢ãã¦ããªããªãçµãããªãã£ãçµé¨ãããã¨æãã¾ã \(n\)人ã§ãããããããæã«ããã 1人ã®åè ã決ã¾ãã¾ã§ã®åæ°ã®æå¾ å¤(å¹³ååæ°)ãè¨ç®ãã¦ã¿ã¾ãã ã¾ã大人æ°ã§ãããã«åè² ãã¤ãã²ã¼ãã¼ãããããâ¦
Pythonã§çµã¿åãã(Combination)ãè¨ç® - å¯ç©æ¯ç @Scaled_Wurm æ°å¹´åã«ä¸ã®ãããªè¨äºãæ¸ãã¾ããããã©ã¤ãã©ãªã使ããªãå ´åã®è¨ç®ã«ã¤ãã¦æ¸ãã¦ãªãã£ãã®ã§è¨äºã«ãã¾ãã çµã¿åããã¨ã¯ ããã¤ãã®è¦ç´ ã®ä¸ãããé çªãåºå¥ããã«ããã¤ãã®è¦â¦
ä»æ¥ã¯å¤©çèªçæ¥ã§ããã以åããã¨ä½å天çã交代ããã°æ¯æ¥ã天çèªçæ¥ã«ãªãã(ä¸è¬¹æ )ãã®æå¾ å¤ãæ±ããè¨äºãæ¸ãã¾ãã æ¯æ¥ã天çèªçæ¥ã«ãªãã«ã¯ä½å天çã交代ããå¿ è¦ãããã - å¯ç©æ¯ç @Scaled_Wurm æ¯æ¥ã天çèªçæ¥ã«ãªãã«ã¯ä½å天çãâ¦
åã«ãã¤ã¼ãæéã®åå¸ã®é¡ä¼¼åº¦ãæ±ããã¨ããã®ãããã¾ãã Twitterã®æ稿æéã§é¡ä¼¼åº¦ãè¨ç®ãã¦ã¿ã - 確çåå¸ã®é¡ä¼¼åº¦ - å¯ç©æ¯ç @Scaled_Wurm Twitterã®æ稿æéã§é¡ä¼¼åº¦ãè¨ç®ãã¦ã¿ã - 確çåå¸ã®é¡ä¼¼åº¦ - å¯ç©æ¯ç @Scaled_Wurmä»åã¯ãã¤ã¼ãâ¦
Pythonã®è¡åæ¼ç®ã©ã¤ãã©ãªã®NumPyã¯forã«ã¼ãã使ã£ã¦è¨ç®ããã¨é ãã®ã§ãã§ããã ãè¡åæ¼ç®ããã¯ãã«æ¼ç®ã ãã§è¨ç®ãè¡ãããNumPyã§ã¯å¤§ããã®éãarrayå士ã§è¨ç®ããã¨ãã®ããã¼ããã£ã¹ãã¨ããä»çµã¿ãããã¾ã ããã使ãã¨è¤éãªè¨ç®ãç°¡åãªâ¦
Machine Learning Advent Calendarã®åå è ãå»å¹´ã®åå è ã¨æ¯ã¹ãã¨å ¥ãæ¿ãããæ¿ãããã ãªã¼ã¨æã£ãã®ã§ä»ã®ã調ã¹ã¦ã¿ã¾ããMachine Learning Advent Calendarã®ä»å¹´ã®åèªãã§ããã©ã2014å¹´ã¨2013å¹´ã®å ±éã®å·çè ã£ã¦4/25ãããããããªããã ãªã â¦
Pythonã§åºåããUTF-8ã®CSVã渡ããããæååããã¦Excelã§èªããªããã¨è¨ããã¦å°ãã¾ããåå ã¯æåã³ã¼ããUTF-8ã®æã«ããåé¡ã«ãªãBOM(ãã¤ããªã¼ãã¼ãã¼ã¯)ã§ã ãã¤ããªã¼ãã¼ãã¼ã¯ - Wikipedia UTF-8ã®ãã¡ã¤ã«ã«ã¯BOMãä»ãã¦ããå ´åã¨ä»ãã¦â¦
Twitterã«ã¯Twitterã¢ããªãã£ã¯ã¹ã¨ããã¢ã¯ã»ã¹è§£æãããã¾ã ã¤ã³ãã¬ãã·ã§ã³(è¦ãããæ°)ããµãã¼ãããæ°ããªãã¤ã¼ããããæ°ããã®ä»å¤ãã®æ å ±ããããã¾ã æè¿ã®ãã¼ã¿ãCSVã§ãã¦ã³ãã¼ãã§ããããã«ãªã£ã¦ãã¾ã(ãã¾ãé·æã®ãã¼ã¿ã¯ãã¦ã³â¦
paizaã§æ°ãããªã³ã©ã¤ã³ããã«ã½ã³ãåºé¡ããã¦ããã®ã§ææ¦ãã¦ã¿ã¾ãã ã¨ã³ã¸ãã¢ã§ãæããããã転è·åæ¥ã«ã¶ã¤ãã£ã女ã®åãååã ã£ã件ãï½paizaãªã³ã©ã¤ã³ããã«ã½ã³4 Lite ãã³ã¬çãã¨ã³ã¸ãã¢ã§ãæããããï¼ãã転è·åæ¥ã«ã¶ã¤ãã£ã女ã®åâ¦
ä¸äººã¢ããã³ãã«ã¬ã³ãã¼ã®ä¸æ¥ç®ã§ã(é10æã«ãã³ãã³åç»ãããã¹ãããã·ã§ããæ¤ç´¢APIãã¨ããã®ãåºã¦ããã®ã§è§¦ã£ã¦ã¿ã¾ãã æ¯æ¥æ5æã®æç¹ã®ãã¼ã¿ã®ã¹ãããã·ã§ããããæ¤ç´¢ã§ããAPIã§ãã³ãã³åç»ã®ã³ã³ãã³ãã解æããç®çã§æ¤ç´¢/åå¾ããâ¦
åã«æ±ºå®æ¨ã®å¯è¦åããããã¨æã£ã¦ãã£ã¦ãªãã£ãã®ã§ãã£ã¦ããã¾ã決å®æ¨ã®ã©ã¤ãã©ãªã¯ä¾ã®ãã¨ãscikit-learnã使ã pythonã®æ©æ¢°å¦ç¿ã©ã¤ãã©ãªscikit-learnã®ç´¹ä» - å¯ç©æ¯ç @Scaled_Wurm pythonã®æ©æ¢°å¦ç¿ã©ã¤ãã©ãªscikit-learnã®ç´¹ä» - å¯ç©æ¯çâ¦
Derangement - Wikipedia, the free encyclopedia å®å ¨é å - Wikipedia Derangementã¯\(1, 2, \dots, n - 1, n\)ãè¦ç´ ã¨ããé åã®ãã¡ããã¹ã¦ã®\(i\)çªç®ã®è¦ç´ ã\(i\)ã¨çãããªãé åã®ãã¨(ä¸åç¹ã®åæ°ã\(0\))ãã¨ãã°\(1, 2, 3\)ãè¦ç´ ã¨ããé åâ¦
ç´ æ°ãæ±ãããç´ å æ°å解ããã®ã¯ç«¶æããã°ã©ãã³ã°ã§ãã¾ã«åºã¦ãã¾ã è¨ç®éã¨ã詳細ããã¾ãç¥ããªãã£ãã®ã§åºæ¬çãªã¢ã«ã´ãªãºã ã«ã¤ãã¦èª¿ã¹ã¦ã¿ã¾ããã¢ã«ã´ãªãºã ãæ°å¦ã«ã¤ãã¦ã¯ãã¾ã詳ãããªãã®ã§ééãããã£ããææãã¦ãã ãã ã©ã³ãã¦â¦
天æç«æ¶ãã¨ã³ã¸ãã¢é§å³¶ãããPMããããã丸æããè¦ããããï½paizaãªã³ã©ã¤ã³ããã«ã½ã³Lite åé¡è¨å® \(n\)åã®ä¼ç¤¾ããããã«ãã¨ã³ã¸ãã¢ã®äººæ°\(q\)ã¨ä¾¡æ ¼\(r\)ãä¸ãããã ä¼ç¤¾ãããã¤ãé¸ãã§å¥ç´ããæã«ãã¨ã³ã¸ãã¢ã®äººæ°ã®åè¨ãããå¤\(m\â¦
Pythonã§æååä¸ã®å¤æ°å±éãããã¨ãã®æ¸å¼ã«ã¤ãã¦èª¿ã¹ãã®ã§ã¡ã¢ http://docs.python.jp/2/library/string.html#formatstrings åºæ¬çã«æååä¸ã®{ã¨}ã®éã«ããããã¨æå®ãã¦ãå±éãããå¤æ°ãformaté¢æ°ã«ä¸ããããã«ãªã£ã¦ãã¾ã ã¡ãªã¿ã«formatâ¦
ä»åã®ã¯ç°¡åã ã£ã ææ¦è æ±ãï¼ãã¢ã«ã´ãªãºã ãã¹ãã¼ã¹ãã¼ãã¼ç¤¾ã®å±æ©ãæãï¼ by The Essence of Programming çµå 浩âCodeIQ https://codeiq.jp/achievement/135 æ¦è¦ 以ä¸ã®URLã§åãã¦ããæååã®å¤æã®ä»çµã¿ãæ¨å®ãã http://spacetalky.textfâ¦
ã·ã¼ã¶ã¼æå·ã¯ãã¹ã¦ã®ã¢ã«ãã¡ãããã\(n\)åãã¤ãããæå·ã§ãã ã·ã¼ã¶ã¼æå· - Wikipedia ABCDEFGHIJKLMNOPQRSTUVWXYZ â(+3) DEFGHIJKLMNOPQRSTUVWXYZABCæå·ãå ã®æã«å¾©å·åããã¨ãã«ã¯éã«\(-n\)æåããããªãã¨ãããªãã®ã§ããã\(13\)æåãâ¦
AIZU ONLINE JUDGE(AOJ)ã¨ãã競æããã°ã©ãã³ã°ã®åé¡ãå ¬éãã¦ãããµã¤ããããã AIZU ONLINE JUDGE: Programming Challenge 1年以ä¸åã«AOJãå°ãã ããã£ã¦ããé ã«ãAOJã®åé¡ãæ¨è¦ããã¹ã¯ãªãããæ¸ãããã®ã®ãç¹ã«å ¬éã使ç¨ãããã«æ¾ç½®ãã¦ãâ¦
Pythonã®collectionsã¢ã¸ã¥ã¼ã«ã«ã¯defaultdictãCounterãªã©ã®ä¾¿å©ãªãã¼ã¿æ§é ãããã¾ãã ããã¤ãã¡ã¢ä»£ããã«ç´¹ä»ãã¦ããã¾ã defaultdict è¾æ¸ã«ãã¼ãå«ã¾ããªãå ´åã®ããã©ã«ãå¤ãæå®ã§ãã¾ãã ãªã¹ããããã©ã«ãã§æã¤è¾æ¸ãªã©ãä½ãã¾ãã â¦
éå»ã«Vol.1ã«ãææ¦ãã¾ãããã©ãä»åãææ¦ãã¦ã¿ã 女å大çã¨ãã¢ããããã ãã®ç°¡åãªãä»äºã§ãï¼ï½paizaãªã³ã©ã¤ã³ããã«ã½ã³Vol.2 ã¨ãããã100ç¹åãã¾ãã mugenenããã®æ¡ç¹çµæ[100ç¹] ããåããªãã¦æã£ã¦ããããããªããã ããï¼ï½paizaãªâ¦
14th, 735.75pts, +2/0 challenge Volatility ?->394åå-25ptsãåã£ã¦Div2ã«è½ã¡ãã®ã§ãããããé ä½ãã¨ããã®ã§Div1ã«å¾©å¸°ã§ãã¾ããã 250: LeftAndRightHandedDiv2 å³å©ãã®äººã¨å·¦å©ãã®äººãé£ç¶ããæ¤ åã«åº§ã£ã¦ããã å³å©ãã®äººã®å·¦å´ã«å·¦å©ãã®äººâ¦
pyqueryã¯jQueryã¨åæ§ã«HTMLã®æä½ãã§ããPythonç¨ã®ã©ã¤ãã©ãªã§ãã Pythonã§HTMLããã®ãã¼ã¿æ½åºã¨ããã°Beautiful Soupã®ååãããè¦ããã¾ãããjQueryãç¥ã£ã¦ãã人ã«ã¯ãã£ã¡ã®æ¹ã使ããããã¨æãã¾ããå é¨çã«ã¯lxmlã使ç¨ãã¦ããã®ã§ä»¥ä¸â¦
ä¸ã®è«æãæè¿ã¯ã¦ãªã¨ãTwitterã¨ãã§è©±é¡ã«ãªãã¾ãã CiNii è«æ - ãã¤ã¯ãããã°ã®æ稿æéã«çç®ããã¦ã¼ã¶ã®è·æ¥æ¨å®ã«é¢ããç 究 ãããããã°æãã³ãã³åç»ã®ã³ã¡ã³ãã®æ稿æéã調ã¹ã¦ä¸æ¸ãã«æ¾ãè¾¼ãã§ããããªã¼ãã¨æãåºããã®ã§å ¬éä¾ã®â¦