comment

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

関連記事

no image

unixターミナルでストレージのファイル使用量を表示する方法

unix では、du コマンドを使ってファイルの容量を表示することができる。 h (human readable)のオプションを使うと、キロバイト・メガバイト等 人間に読みやすい表示をしてくれる。 d …

no image

matplotlib で x軸・y軸ラベルをつける

plt.xlabel と plt.ylabel を使う。 例 import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, …

no image

pythonで配列(リスト)の、ある要素がわかっているときにその次の要素を取得する方法。

リストを iter に変えたあと、… next() を使う。 参考リンク https://www.programiz.com/python-programming/methods/buil …

no image

map::find で、iterator の場所を探す方法

以下の例のプログラムでは、 探した iterator の場所から、map の終わりの場所までに対応する要素をコンソールに表示する。 例 #include <iostream> #include …

matplotlib のグラフ作成と gnuplot との対応 比較

起動方法 gnuplot コマンドで $ gnuplot とすれば起動できる。 初期設定ファイルは gnuplotrc にある。 gnuplotrc の場所の見つけ方(macの場合) https:// …