MMahdi Zojajidef replace_letter(string, index, new): return string[:index] + new + string[index+1:] def replace_letter2(string, index, new): string = list(string) string[index] = new return ''.join(string)18:09
已已删除的账号نه منظور من اینه که مثلا بگم حرف اول a که توش یه رشتس رو چجوری عوض کنم؟ مثلا این چشه؟: a='salam' a[0]='d' این چرا نمیشه dalam18:12