对于函数 def test(x): if isinstance(x, list): x.append(4) print x elif isinstance(x, int): x += 1 print x 以下结果中正确的是哪一项?
A.>>> array = [1, 2, 3] >>> test(array) >>> [1, 2, 3]
B.>>> array = [1, 2, 3] >>> test(array) >>> [1, 2, 4]
C.>>> x = 3 >>> test(x) >>> 4
D.>>> x = 3 >>> test(x) >>> 3