python中修改列表中的每一項元素

原列表    names = ['Ann', 'Bob', 'Cindy']python 新列表   new_names =  ['the great Ann', 'the great Bob', 'the great Cindy']app 代碼以下:code def make_great(names): # 對原列表進行遍歷 while names: # 對每個列
相關文章
相關標籤/搜索