2016-04-15から1日間の記事一覧
はてなブログでpythonコードをハイライトする方法。設定→編集モード→はてな記法モードを選択する。">|python|"と"|| syntaxhighlighterとかを使わなくても良いのは便利ですね。 import collections Card = collections.namedtuple('Card',['rank','suit']) c…
はてなブログでpythonコードをハイライトする方法。設定→編集モード→はてな記法モードを選択する。">|python|"と"|| syntaxhighlighterとかを使わなくても良いのは便利ですね。 import collections Card = collections.namedtuple('Card',['rank','suit']) c…