オライリーのPythonチュートリアルを読んで知らなかったことを自分用メモとしてまとめておく。 対話モードでは、最後に表示した式を「_」に代入してある。 >>> price = 1000 >>> tax = 10 >>> price * (tax+100)/100 1100.0 >>> print(_) 1100.0 3.1.2 文字列 raw文字列:エスケープ用 ...
データの分析や物理シミュレーション、あるいは情報量を計算するプログラムにおいて、「対数(ロガリズム)」は非常に重要な役割を果たします。 Pythonの標準ライブラリである math モジュールには、対数を計算する関数として math.log が用意されています。
animation in Python, visualizing the infinite, non-repeating nature of pi through dynamic graphics and mathematical patterns. You’ll learn how to use Python to generate digits of π, create smooth ...
本題に入る前に、Pythonのバージョンの考え方とチュートリアルの前提についてお話しします。 まずPythonのバージョンについてですが、Pythonは1年おきにバージョンが0.1上がる仕組みになっており、現在の最新は3.9で、今年の10月には3.10が出る予定になっています ...
CodeZineは、株式会社翔泳社が運営するソフトウェア開発者向けのWebメディアです。「デベロッパーの成長と課題解決に貢献するメディア」をコンセプトに、現場で役立つ最新情報を日々お届けします。
You can create a release to package software, along with release notes and links to binary files, for other people to use. Learn more about releases in our docs.