Casual Literary Notes
查看 Windows 是否正版及其激活途径:
Win + R 后输入:slmgr.vbs -dli
其中:
以二进制形式合并两个文件,可用来做图种 |
Python will check for SyntaxErrors
before executing any code. This is different from other errors, which are only raised during runtime.
A common bug is to leave off the closing parenthesis. This will show up as a SyntaxError
. Consider the following code:
def fun(): |
Python will raise a SyntaxError
, but will point to the line after the missing parenthesis:
File "file name", line "number" |
In general, if Python points a SyntaxError
to a seemingly correct line, you are probably forgetting a parenthesis somewhere.
This is similar to the previous bug, but much easier to catch. Python will actually tell you the line that is missing the quote:
File "file name", line "number" |
EOL
stands for “End of Line.”
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 寒酥梦的温暖小窝(施工中ing)!