C# 如何从c中的字符串索引中获取字符
在python中,您可以编写C# 如何从c中的字符串索引中获取字符,c#,C#,在python中,您可以编写 string = "abcdef" character = string[1] print(character) 您的输出将是 b c的等价物是什么?在其他语言中也是如此 string s = "abcdef"; char c = s[1]; Console.WriteLine(c);
string = "abcdef"
character = string[1]
print(character)
您的输出将是
b
c的等价物是什么?在其他语言中也是如此
string s = "abcdef";
char c = s[1];
Console.WriteLine(c);