Tag Archives: Python

Pythonで3桁区切りのカンマ挿入

PHPでいうnumber_formatのように、3桁毎に位取りのカンマを入れる方法はどうするの?ってことで。
いろいろ探してみると、これがよさそう。

>>> import locale
 … Continue reading

Posted in Tech | Tagged | Leave a comment

割り算

/で整数の割り算をすると切り捨てられるのが、なんか違和感あるって話になって調べてみると、そうだったのかあ。
調べてみるもんだ。

>>> 10/3
3
>>> from … Continue reading

Posted in Tech | Tagged | Leave a comment

HTMLのタグを取り除く

作るの面倒だな、どこかにあるだろうなあ、と探してみるとこういうのが見つかった。
http://svn.gaplan.org/gaplan/trunk/wepylog/tools.py
この中のstriptagで解決。感謝 … Continue reading

Posted in Tech | Tagged | Leave a comment

Pythonでモジュラス10ウエイト3とisbn10to13

Guidelines For Shipping Container Labeling
http://www.bisg.org/docs/shipping_label_guidelines_09-2005.pdf
こんなの … Continue reading

Posted in Code, Tech | Tagged , , | Leave a comment

WebFaction blog / Control panel demo

cherrypy-usersより。http://blog.webfaction.com/control-panel-demo

The one-click installer already supports all … Continue reading

Posted in Tech | Tagged | Leave a comment

ISBNをいろいろするライブラリ

ISBNの13桁化(ISBN(国際標準図書番号)規格改定等について お知らせ)に伴って、既存のデータベースの10桁を変換するために、作ったものです。

10桁、13桁ISBNのチェックデジットの計算
10桁ISBNと13 … Continue reading

Posted in Code, Tech | Tagged | 2 Comments