comment

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

関連記事

no image

std::vector で、vector の要素を erase() で消去する

任意の要素を指定して、 養素を消去することができる。 例 #include <iostream> #include <vector> int main() { std::vector&lt …

no image

matplotlib でcsv ファイルを読み込むとき、最初の行をスキップする方法

numpy の loadtxt で読み込む行を省略したい場合 スキップしたい行を # 等の記号でコメントアウトして、 loadtxt の comments = ‘#’ とすると …

no image

PHPで文字を入れ替える方法

文字を入れ替えるには、strtr を使う。 例 $string = “あいうえお” ; $string1 = “あえ”; $string2 = “かけ”; // 入れ替える echo strtr($s …

no image

tex で丸で囲った文字を出力する方法

丸で囲った文字や、丸数字①などを出力したい場合がある。テキストモードにしてから、\textcircled と \raisebox の組み合わせを使って出力できる。 例 \usepackage{amsm …

no image

matplotlib で複数のグラフを並べて表示する方法

plot.subplots() でグラフの縦方向と横方向の数を指定する。 例 import numpy as np from matplotlib import pyplot as plt x1 = …