运行下列代码,终端区打印的结果是?( )
nums = [1, 2, 3, 4] nums.append(nums[4]) print(nums)
[1, 2, 3, 4, 5]
[1, 2, 3, 4, 4]
[1, 2, 3, 4]
终端区会报错