题解 | #牛牛的朋友#
牛牛的朋友
http://www.nowcoder.com/practice/11bcc9a775b14d9f9b855634b9434b70
friends_list = ['Niu Ke Le','Niumei','Niuneng','GOLO']
def replace(list,index):
list[index] = index
return list
print(friends_list)
for i in range(0,len(friends_list)):
replace(friends_list,i)
print(friends_list)
def replace(list,index):
list[index] = index
return list
print(friends_list)
for i in range(0,len(friends_list)):
replace(friends_list,i)
print(friends_list)