← 查看本卷题目GESP Python 4级2024年9月单选题 第9题 · 2 分执行下面Python代码后,输出的结果是?( ) 1def tpADD(tpl):2 tpl = tpl +(5,6)3 return tpl4 5tp = (1,2,3)6tpADD(tp)7print(tp,tpADD(tp))填写答案A(1, 2, 3, 5, 6, 5, 6) (1, 2, 3, 5, 6, 5, 6)B(1, 2, 3, 5, 6) (1, 2, 3, 5, 6)C(1, 2, 3) (1, 2, 3, 5, 6)D(1, 2, 3) (1, 2, 3)提交答案详细解析这题不会 ← 上一题 第 8 / 15 题← → 键切题 下一题 →
执行下面Python代码后,输出的结果是?( ) 1def tpADD(tpl):2 tpl = tpl +(5,6)3 return tpl4 5tp = (1,2,3)6tpADD(tp)7print(tp,tpADD(tp))填写答案A(1, 2, 3, 5, 6, 5, 6) (1, 2, 3, 5, 6, 5, 6)B(1, 2, 3, 5, 6) (1, 2, 3, 5, 6)C(1, 2, 3) (1, 2, 3, 5, 6)D(1, 2, 3) (1, 2, 3)提交答案详细解析这题不会