|
求助,照着书上打的代码,但就是运行不出来def bulid_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 = bulid_profile('albert','einstein',location='princeton',field='physics')
print(user_profile)
py3中提示
File "C:/Users/Desktop/temp.py", line 7
def bulid_profile(first, last, **user_info):
^
SyntaxError: invalid character in identifier
谢谢各位大神
|
|