data = '/Users/xxx/Desktop/pycharm/all/'
name_list = ["server_hostname", "cpucore", "cpumodel", "mem", "bond0", "cluster", "os", "net"]
long = len(name_list)
for i in range(long):
filename = name_list[i]
mulu = data + filename
print(mulu)
结果: