comment

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

関連記事

no image

matplotlib で、凡例を表示する位置を変更する方法

凡例(legend)の表示位置を変更するには、axis の legend の loc を設定する。 次のリンクhttps://matplotlib.org/stable/api/_as_gen/mat …

no image

python3 で、指定した文字が最後に現れる場所を取得する

rfind を使うと、指定した文字が最後に現れる場所(インデックス)を取得することができる。 例 str1 = “12345abab” result = str1.rfind(“ab”) print( …

no image

tex で行列の省略した部分を書く方法

斜めの点列を \ddots として書くのがコツ。\matrix を使うためにパッケージ amsmath を使う。 例 \usepackage{amsmath} \begin{document} $$ …

no image

python3 で、dictionary のキー一覧を取得する方法

dict.keys() でキーを取得することができる。 参考:dictionary の値一覧を取得するときは、dict.values() を使う。 例 print(dict.keys())

no image

C言語で printf 出力を左詰めにする方法

% のときに、マイナスを前に付けると、 出力結果を左詰めにすることができる。 例 #include <stdio.h> int main () { int i; for(i=1;i<100 …