研究では、C#のノート - (交換など)の文字列に文字列を

スペースを交換してください

class Solution
{
    public string replaceSpace(string str)
    {
        // write code here
        string newStr = str.Replace(" ", "%20");
        return newStr;
    }
}

 

おすすめ

転載: blog.csdn.net/Alina_catty/article/details/91288267