發(fā)給你一個函數(shù):defreplaceString(string,num,replace):string2=''foriinrange(len(string)):ifi==num:string2+=replaceelse:string2+=string[i]returnstring2例子:>>>replaceString('abc',1,'a')'aac'
網(wǎng)站導(dǎo)航
- zblogPHP模板zbpkf
- zblog免費模板zblogfree
- zblog模板學(xué)習(xí)zblogxuexi
- zblogPHP仿站zbpfang