初学者学习“返回值”的程序,按照书中原封步骤,却无法执行
def get_formatted_name(first_name,last_name):
“””返回整洁的姓名”””
full_name=f”{first_name} {last_name}”
return full_name.title()
musician=get_formatted_name(‘jimi’,’hendrix’)
print(musician)
推荐文章: