问题描述
在VSCode的LeetCode插件中使用Test并选择Write directly
在输入字符串用例时总是报错Runtime Error : xxxx is not a valid value of type string
![](https://img-blog.csdnimg.cn/f13c51ea706f455da951906d87c78474.png)
解决方案:
参考:https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/650
经测试这两种输入方式可被正常解析,暂时怀疑是VSCode解析给LeetCode时的格式限制。
"string"\n
""string""