Ideally, the string of characters should have a substring such as error or something similar (see the statement in bold blue), which will allow the tester to quickly find the error in the output file.
较理想的做法是,字符串有一个如error或与之相似的子串(见蓝色粗体的语句),这个子串允许测试者很快地在输出文件中查找到错误。
Attempting to continue reading past the end of the file in this way doesn't cause an error, but returns an empty string.
在过了文件末尾之后,如果还用这种方式继续读取,并不会造成错误,只会返回空的string。
Attempting to continue reading past the end of the file in this way doesn't cause an error, but returns an empty string.
在过了文件末尾之后,如果还用这种方式继续读取,并不会造成错误,只会返回空的string。
应用推荐