2023-01-31から1日間の記事一覧
Python文法メモ 変数 値の入力 文字列 変数 変数 = 値 の形で代入 >>> x=5 >>> x 5 何も入っていない変数を出力しようとするとエラー >>> y Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'y' is not defined 整数だけではなく</module></stdin>…
Python文法メモ 変数 値の入力 文字列 変数 変数 = 値 の形で代入 >>> x=5 >>> x 5 何も入っていない変数を出力しようとするとエラー >>> y Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'y' is not defined 整数だけではなく</module></stdin>…