运行 ❯
获取您自己的
Python
服务器
×
更改方向
更改主题,深色/浅色
前往 Spaces
#Legal variable names: myvar = "John" my_var = "John" _my_var = "John" myVar = "John" MYVAR = "John" myvar2 = "John" #Illegal variable names: 2myvar = "John" my-var = "John" my var = "John"
File "demo_variable_names.py", line 10 2myvar = "John" ^ SyntaxError: invalid syntax