NP50. 程序员节
描述
输入描述
无输出描述
Python 解法, 执行用时: 9ms, 内存消耗: 2856KB, 提交时间: 2022-06-03
users_list=['Niuniu' ,'Niumei' , 'Niu Ke Le' ] for i in users_list: print( 'Hi, %s! Welcome to Nowcoder!' %i) print("Happy Programmers' Day to everyone!")
Python 解法, 执行用时: 10ms, 内存消耗: 2828KB, 提交时间: 2022-06-30
user_list = ['Niuniu', 'Niumei', 'Niu Ke Le'] for i in user_list: print 'Hi, ' + i + '! Welcome to Nowcoder!' print 'Happy Programmers\' Day to everyone!'
Python 解法, 执行用时: 10ms, 内存消耗: 2832KB, 提交时间: 2022-07-15
users_list = ['Niuniu', 'Niumei', 'Niu Ke Le'] for user in users_list: print ('Hi, %s! Welcome to Nowcoder!' % user) else: print "Happy Programmers' Day to everyone!"
Python 解法, 执行用时: 10ms, 内存消耗: 2832KB, 提交时间: 2022-06-26
# users_list = ['Niuniu', 'Niumei', 'Niu Ke Le'] # for user in users_list: # print(f'Hi, {user}! Welcome to Nowcoder!') # 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!')
Python 解法, 执行用时: 10ms, 内存消耗: 2836KB, 提交时间: 2022-07-05
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!")