comment

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

関連記事

no image

matplotlib で、矢印を描く方法

arrowprops のパラメータは次を参考にして設定できる。 https://matplotlib.org/stable/api/_as_gen/matplotlib.patches.FancyAr …

no image

tex 表の一部の列のみを中央揃えにする

中央揃えにしたい列を、c で指定すればよい。その他は l (左)または r (右)揃えに指定する 例 \begin{table} \begin{tabular}{ |r|c|r|} \hline Ta …

no image

python3 で切り捨て割り算(除算)

python3 で整数の割り算をして、商(の整数部)を表示するには // 演算子を使う。余りが発生した場合、商は切り捨てた整数部となる。 例 n = 201 print(str(n//2)) 結果 1 …

no image

c++ で文字列(string)の長さを取得する方法

length() で取得する。 例 #include <iostream> #include <string> using namespace std; int main () { str …

no image

tex でバックスラッシュを入力する方法

テキストモードでは \textbackslash 数式モード内では \backslash を、それぞれ使う。 例 $\backslash$ \textbackslash 結果