📅  最后修改于: 2022-03-11 14:45:40.570000             🧑  作者: Mango
string = 'pythonhxamples'
position = 6
new_character = 'e'
string = string[:position] + new_character + string[position+1:]
print(string)
#output: pythonexamples