Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用 Tabstops 分割一个字符串。什么是正确的 char[] 等价物用于
Split.(char[] x, int i)
正确的代码是:
var output = input.Split('\t');
这会将字符串拆分为一个由制表符分隔input的 's 数组。string
input
string
进一步阅读:
您可以使用上面的 ControlChars.Tab