有一个列表list1 = [1, 2, 3, 4, 5, 6, 7 ],请问list1[1:5]表示的值是多少?
A. [2, 3, 4, 5]
B. [2, 3, 4, 5,6]
C. [3, 4, 5,6]
D. [1,2, 3, 4]
以下哪些是Python中正确的打开文件的方式?
A. fp=open('bookComments.txt','r')
B. fp=fopen('bookComments.txt','r')
C. with open('bookComments.txt','r') as fp
D. with fopen('bookComments.txt','r') as fp