users_list = ['Niuniu','Niumei','HR','Niu Ke Le','GURR','LOLO'] for i in users_list: if i == 'HR': print('Hi, {}! Would you like to hire someone?'.format(i)) else: print('Hi, {}! Welcome to Nowcoder!'.format(i))