comment

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

関連記事

no image

ファイルの内容をコマンドラインから表示する方法

コマンドライン(ターミナル)からファイル内容を確認するためのコマンドは cat, less, (more), vi などがある。 cat :ターミナル上にファイル内容を表示したい場合。 less:エデ …

no image

tex で frac の意味

tex で frac コマンドは、分数(fraction)を表示するために使う。「バックスラッシュを付けた」 \frac であることに注意。 例 $\frac{2}{3}$ 結果

no image

matplotlib で x, y軸・タイトルのフォントサイズを調整する

ラベルの fontsize で指定する。 例 import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 2, 100) …

no image

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

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

no image

c言語 ターミナル上で出力した文字列の表示を初期化する

エスケープシーケンス \033[2J と\033[u を使う。 例 #include <unistd.h> #include <stdio.h> int main() { in …