测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A28628. 执行下面Python代码后,输出的结果是?( )def append_value(value, container=[]): container.append(value) return container result1 = append_value(1) result2 = append_value(2) result3 = append_value(3, []) print(result1…

单选题 较难

题目描述

执行下面Python代码后,输出的结果是?(    )

def append_value(value, container=[]):
	container.append(value)
	return container


result1 = append_value(1)
result2 = append_value(2)
result3 = append_value(3, [])
print(result1, result2, result3)

选项(单选)

上一题 下一题