NP15 程序员节
思路:
step1:按照对应要求,for循环后对应格式化输出即可;
代码如下:
users_list = ['Niuniu','Niumei','Niu Ke Le']
for i in users_list:
print('Hi, {}! Welcome to Nowcoder!'.format(i))
print('Happy Programmers\' Day to everyone!')
users_list = ['Niuniu','Niumei','Niu Ke Le']
for i in users_list:
print('Hi, {}! Welcome to Nowcoder!'.format(i))
print('Happy Programmers\' Day to everyone!')