使い方 .2f: 小数点以下 2 桁まで表示 03d: 整数を 3 桁で 0 埋め表示 >5: 5 文字分に右寄せで表示 ^10: 10 文字分に中央寄せで表示 ,: 3 桁毎にカンマで区切る b: 2進数表示 x […]
Articles Tagged: Python
Pygame の使い方 [Python]
Pygame 導入 Getting Started | Pygame Wiki [Official] グラフィック描画 pygame.draw | Pygame Documentation [Official] pyga […]
GUI を開発する方法 [Python]
フレームワーク Tkinter: Python 標準の GUI ライブラリ PyQt: 機能やウィジェットが豊富 (※ GPL であるため商用アプリには向かない) wxPython: ネイティブ GUI に近い見た目/C […]
グラフ構造 [Python]
NetworkX NetworkX [Official] Documentation | NetworkX [Official] Tutorial | NetworkX Documentation [Official] […]
乱数を生成する方法 (random) [Python]
乱数を生成する 実数/浮動小数点 random: 0.0 ~ 1.0 の範囲で一様な乱数を生成する (0.0 以上 1.0 未満) uniform: 指定した範囲で一様な乱数を生成する (a ~ b の範囲) 整数 ra […]
数値演算ライブラリ [Python]
Pandas Python Data Analysis Library Pandas | PyData [Official] pandas-dev/pandas – GitHub pandas | PyPI […]
NumPy Tips [Python]
比較/判定 np.all np.any 比較演算子 / np.allclose – ndarray を要素ごとに比較 | note.nkmk.me all – 使い方/配列の全要素が条件を満たすか […]
ScyPy の使い方 [Python]
SciPy SciPy [Official] インストール scipy パッケージをインストールする。 $ python -m pip scipy scipy | PyPI Installation | SciPy [O […]
CLI [Python]
Colorama Simple cross-platform colored terminal text in Python tartley/colorama – GitHub colorama | PyPI […]
色を取り扱う方法 [Python]
Colour (Valentin Lab) vaab/colour: Color Representations Manipulation Library – GitHub colour | PyPI col […]