トルコ水紀行 -前編 イスタンブール- みなさんこんばんは、地図子です!8月は久しぶりに毎月更新にしようと思います。今までずっと名古屋について書いてきましたが、ワープして・・・ トルコについて書きたいと思います。 2024年6月に念願のトルコに行ってきました。いつからトルコに行きたかったかわから…
色々とTracのソースを眺めてたらすごいコードを発見したので、忘れないようにメモ ココの 60行目から引用 60 DIGITS = re.compile(r'(\d+)') 61 def embedded_numbers(s): 62 """Comparison function for natural order sorting based on 63 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/214202.""" 64 pieces = DIGITS.split(s) 65 pieces[1::2] = map(int, pieces[1::2]) 66 return pieces すごいところが分かりやすいようにして軽く実行してみるとこんな感じ >>> import re >>> DIGITS = re.compi
The Google PageRank Algorithm in 126 Lines of Python Reading How Google Finds Your Needle in the Web's Haystack I was surprised by the simplicity of the math underlying the google PageRank algorithm, and the ease with which it seemed to be efficiently implementable. Being able to do a google-style ranking seems useful for a wide range of cases, and since I had wanted to take a look at python for
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く