programming-language基本変数定数の代入On this page定数の代入 Python x py_x = 1 # 慣例らしく、言語的にはチェックされない Swift swiftlet x = 1; PHP php$x = 1; TypeScript tsconst x = 1; Bash bashreadonly x=1 Ruby x PowerShell powershellSet-Variable -Name x -Value 1 -Option Constant ・・・こんな書き方しかないのだろうか C++ cppconst int x = 3; C# csreadonly int x = 1; 📩 ご意見・ご感想はこちらから