我如何用另一个替换字符串的第n个字符?
func replace(myString:String,index:Int,newCharac:Character) -> String { // Write correct code here return modifiedString }
例如,replace(“House”,2,“r”)应等于“Horse”.