单选题

若要创建一个包含1、2、3、4四个数字的列表a,下列哪个方法是错误的?( )

A

a=1,2,3,4

B

a=[1,2,3,4]

C

a=list(range(1,5))

D

a=list([1,2,3,4])

赣ICP备20007335号-2