在C ++中,我可以std::string像这样迭代:
std::string str = "Hello World!";
for (int i = 0; i < str.length(); ++i)
{
std::cout << str[i] << std::endl;
}
如何在Python中遍历字符串?
慕勒3428872
慕尼黑的夜晚无繁华
相关分类