comment

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

関連記事

no image

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

next() を使う。 例 my_arr = [‘春’,’夏’,’秋’,’冬’] my_iter = iter(my_arr) print(next(my_iter,’なし’)) print(next …

no image

tex で差集合の記号を入力する方法

\setminus を使う。 例 $A \setminus B$ 結果

no image

tex でチェックマークとバツ記号を入力する方法

amssymb パッケージを導入して、\checkmark でチェックマークが入力できる。 例 \usepackage{amssymb} \begin{document} $\checkmark \t …

no image

matplotlib で、凡例を表示する方法

データに label を関連付け、plt.legend() で凡例を表示する。 例 from matplotlib import pyplot as plt data_x = [25,26,2 …

no image

ruby で mysql2 のインストールのときに ld: library not found for -lssl エラーが出る場合の対処法。

ruby on rails アプリを動かしているときに起きた問題。 ruby で bundle install しようとすると、 ld: library not found for -lssl を含む …