floor divisionを使う。
例
a = 15 // 7 b = 15 % 7 print(a) print(b)
結果
2 1
雑記
投稿日:
floor divisionを使う。
a = 15 // 7 b = 15 % 7 print(a) print(b)
2 1
執筆者:seyanen
関連記事
凡例(legend)の表示位置を変更するには、axis の legend の loc を設定する。 次のリンクhttps://matplotlib.org/stable/api/_as_gen/mat …
annotate を使う。 例 import numpy as np from matplotlib import pyplot as plt x = np.linspace(-10,10,100) …
matplotlib でグラフの背景の色を変える方法(facecolor)
次のように、axes で facecolor を変更すればよい。 例 from matplotlib import pyplot as plt x = [2,7,8] y = [7,1 …
2023/01/18
matplotlib のグラフ作成と gnuplot との対応 比較
2022/10/14
pythonで配列(リスト)の、ある要素がわかっているときにその次の要素を取得する方法。