判断题
偏易
#16213
运行下列代码的输出结果为(3,2,1)。( ) t = ( 2 , 3 , 1 ) t . sort ( ) print ( t ) Copy
运行下列代码的输出结果为(3,2,1)。( )
答案与解析
正确答案:错
解析
元组没有sort方法。运行该代码会抛出异常。