Python中from module import function为什么导入的是module的内容

程序sandwiches.py内容如下

def build_profile(first, last, **user_info):
"""创建一个字典,其中包含我们知道的有关用户的一切"""
profile = {}
profile['first_name'] = first
profile['last_name'] = last
for key, value in user_info.items():
profile[key] = value
return profile
user_profile = build_profile('wang' , 'feng' , location='shanghai' , field='china')
print(user_profile)

执行程序为:

from sandwiches import build_profile
user = build_profile('li','xiaolong',location = '中国')
print(user)

问题:为什么运行结果是下面内容?

{'first_name': 'wang', 'last_name': 'feng', 'location': 'shanghai', 'field': 'china'}
{'first_name': 'li', 'last_name': 'xiaolong', 'location': '中国'}
而不是只有{'first_name': 'li', 'last_name': 'xiaolong', 'location': '中国'}?

https://www.jb51.net/article/52412.htm