We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
数と文字列を区別しないように、大文字で始まるから配列とはしなくていいのでは
The text was updated successfully, but these errors were encountered:
related code4fukui#4
Sorry, something went wrong.
名前で区別しないと困ることが発覚
名前で配列とわかっていれば、下記の挙動は配列の初期値がすべて15として、要素0を15と表示、後に0と表示可能
Array = 15 print Array[0] Array = 0 print Array[0]
名前で区別できないと、まずは数値として初期化され、配列的な使用によりエラー?次のa = 0 で整数変数にするか、配列の要素すべてへの代入かが不確定となる
a = 15 print a[0] a = 0 print a[0]
解決策
配列へのまとめて代入の文法を変更
例: Tokuten = 0
これを
→ 例: Tokuten = [...0]
とする?
No branches or pull requests
数と文字列を区別しないように、大文字で始まるから配列とはしなくていいのでは
The text was updated successfully, but these errors were encountered: