题解 | #找到HR#
找到HR
https://www.nowcoder.com/practice/bfd85733e4de4d1da8d756712e289dac
注意字符串中变量的引用:串前f串中{}
users_list = ['Niuniu','Niumei','HR','Niu Ke Le','GURR','LOLO']
for i in users_list:
if i == 'HR':
print('Hi, HR! Would you like to hire someone?')
else:
# print('Hi, '+i+'! Welcome to Nowcoder!' )
print(f'Hi, {i}! Welcome to Nowcoder!')
# 练习使用f'{}进行变量的引用,f放在字符串的前面表明有变量的引用,字符串里面引用部分使用{}包裹起来

