IP Protection Compiling your source code for security. If you're a commercial user, ensure that all of your data and files are secured and that there are no readable strings. Performance Boost your program runtime and launch performance. Deployment Enjoy hassle-free Python deployment with standalone distributions, onefile, PyPI wheels, and more.
About cx_Freeze cx_Freeze is a set of scripts and modules for freezing Python scripts into executables, in much the same way that py2exe and py2app do. Unlike these two tools, cx_Freeze is cross platform and should work on any platform that Python itself works on. It supports Python 3.5 or higher (for Python 2.7 use cx_Freeze version 5). Download/Install Version 6.1, released January 4, 2020 Insta
プログラミングとか、見た番組とか、興味を持っていろいろ調べてみたこととか、そういうものを書き留めるためのもの 日本語読み上げのための mbtts を久しぶりに書き直したのですが、そこでアラビア数字を漢数字に変換する部分も修正しました。 このスクリプトをもっと簡潔に書くとどうなるだろうと、単純な条件にしてみて、考えてみたのが次のスクリプトです。 #!/usr/bin/env python # -*- coding: utf8 -*- import re char2int = { u'0' :0, u'1' :1, u'2' :2, u'3' :3, u'4' :4, u'5' :5, u'6' :6, u'7' :7, u'8' :8, u'9' :9, u'0':0, u'1':1, u'2':2, u'3':3, u'4':4, u'5':5, u'6':6, u'7':7, u'8':
はてなグループの終了日を2020年1月31日(金)に決定しました 以下のエントリの通り、今年末を目処にはてなグループを終了予定である旨をお知らせしておりました。 2019年末を目処に、はてなグループの提供を終了する予定です - はてなグループ日記 このたび、正式に終了日を決定いたしましたので、以下の通りご確認ください。 終了日: 2020年1月31日(金) エクスポート希望申請期限:2020年1月31日(金) 終了日以降は、はてなグループの閲覧および投稿は行えません。日記のエクスポートが必要な方は以下の記事にしたがって手続きをしてください。 はてなグループに投稿された日記データのエクスポートについて - はてなグループ日記 ご利用のみなさまにはご迷惑をおかけいたしますが、どうぞよろしくお願いいたします。 2020-06-25 追記 はてなグループ日記のエクスポートデータは2020年2月28
If you're using Python with SQLite and you want to be able to read and write to the database concurrently, you need to enable WAL. The problem is that only SQLite versions 3.7.x support this new functionality, and Python comes with older versions (at least Python 2.6.x does). So, you need to upgrade SQLite, but fortunately this is surprisingly easy. If you're on Windows, like I am, you should go t
普段、Pythonのコードは何となく速かろうという、言ってみれば勘で書いているのだけど、その勘とやらは往々にしてウンコードを生むものである。そこで、プロファイラを使っていきたいと思う。 使えそうなツール そういうわけで、いくつか使えそうなツールをリストアップした。 経過時間のプロファイラ ツール名 メモ profile ビルトイン, ピュアPythonの決定論的プロファイラ cProfile ビルトイン, C拡張の決定論的プロファイラ line_profiler 行単位の決定論的プロファイラ Plop 統計的プロファイラ, Dropboxの人が作ってる statprof 統計的プロファイラ, 開発停止? yep 拡張モジュール用の統計的プロファイラ, バックエンドにgoogle-perftools メモリのプロファイラ ツール名 メモ memory_profiler 行単位でメモリ消費量の
Python には Java なんかにあるようなインターフェースや抽象クラスといった概念が言語自体には組み込まれていない。 ただ、全くないわけではなくて Python 2.6 から ABC (Abstract Base Class) モジュールとして用意されたみたいだ。 早速サンプルで抽象クラスを作ってそれを実装してみる。 抽象クラスは ABCMeta クラスをメタクラスとして使う。 そして、抽象メソッドは @abstractmethod デコレータで修飾する。 #!/usr/bin/env python # -*- coding: utf-8 -*- from abc import ABCMeta, abstractmethod # 抽象クラス class AbstractBaseSampleClass(object): __metaclass__ = ABCMeta # 抽象メソッド
14/10/2011 Some more fun with python decorators. This time about threading. Java gives us some nice threading primitives built into the language including the abstraction of the synchronized keyword. What this keyword ensures is that no two threads will enter the same block marked as synchronized. We can actually build into python almost identical functionality using decorators and some basic meta
Python と matploblib によるデータ可視化についてはすでに pandas + matplotlib による多彩なデータプロッティングや pandas を利用してデータセットの可視化を素早く試行する、 matplotlib (+ pandas) によるデータ可視化の方法などでさまざまな方法を説明してきました。 今回はヒートマップを描くわけですが、その前にあらためで可視化の方法についておさらいしましょう。 配列からのデータ可視化方法のまとめ ここでのデータ可視化とは配列からなるポピュラーな図示をさしています。配列とは、複数の属性値を持ち、 1 つのデータが 1 つの行で表されるデータの形式です。 いろいろなバリエーションがありますが、主軸となる代表的な可視化方法をまとめます。 棒グラフ (bar) データの大きさの比較に適したグラフです。縦や横に描画する方法、積み上げる方法、複
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く