代码
提交代码
def create_full_name(**kw_args):
if 'full_name' in kw_args:
full_name = kw_args['full_name']
return full_name
if 'first_name' in kw_args and 'last_name' in kw_args:
first_name = kw_args['first_name']
last_name = kw_args['last_name']
full_name = first_name + last_name
return full_name
print(create_full_name(full_name = 'ZhangSan'))
print(create_full_name(first_name = 'Li', last_name = 'Si'))
运行结果