通过索引方式修改

>>> i = nameList.index('H')
>>> nameList[i] = 'h'
>>> nameList
['good', 'jack', 'java', 'js', 'll', 'php', 'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'd']
>>>