当将字符串作为布尔值使用时,将首先把字符串转换为整数,然后再计算真(非0)或假(0)。
When a string is used as a Boolean, it is first converted to an integer, and then evaluated for truth (non-zero) or falsehood (zero).
作为最后的手段,您可以尝试通过替换表示CR,LF等的特殊字符将多行字符串转换为长字符串。
And, as a last resort, you can try converting the multi-line string into a long string by replacing the special characters that represent CR, LF, etc.
作为最后的手段,您可以尝试通过替换表示CR,LF等的特殊字符将多行字符串转换为长字符串。
And, as a last resort, you can try converting the multi-line string into a long string by replacing the special characters that represent CR, LF, etc.
应用推荐