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