comment

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

関連記事

no image

matplotlib で折れ線グラフの下部に色をつけて塗りつぶす方法

pyplot の fill_between を使う。 例 from matplotlib import pyplot as plt data_x = [25,26,27] data_y = & …

no image

matplotlib でグラフ表示ウィンドウの画面上の位置を自由に設定する方法

matplotlib.use(‘TkAgg’) としておき、 get_current_fig_manager().window.wm_geometry(“+20+50”) として、(+20+50)のと …

no image

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

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

no image

〜に向いている を英語で言う方法

〜に向いている lend itself to … (何かに)向いている、適している または be suitable for … という言い方がある。

no image

python3 で、文字列の最後が特定の文字で終わるか判定する方法

endswith を使う。 例 str1 = “こんにちは” result1 = str1.endswith(“は”) result2 = str1.endswith(“わ”) print(resul …