A、frame[['ID']].groupby(frame('gender')).count().sortⱣⱤvalues(by=('gender'))
B、frame[['ID']].groupby(['gender']).count().sortⱣⱤvalues(by=frame['gender'])
C、frame[['ID']].groupby(('gender')).count().sortⱣⱤvalues(by=frame('gender'))
D、frame[['ID']].groupby(frame['gender']).count().sortⱣⱤvalues(by=['gender'])
答案:D
解析:答案解析:
A、frame[['ID']].groupby(frame('gender')).count().sortⱣⱤvalues(by=('gender'))
B、frame[['ID']].groupby(['gender']).count().sortⱣⱤvalues(by=frame['gender'])
C、frame[['ID']].groupby(('gender')).count().sortⱣⱤvalues(by=frame('gender'))
D、frame[['ID']].groupby(frame['gender']).count().sortⱣⱤvalues(by=['gender'])
答案:D
解析:答案解析:
A. y = x + 1if x >= 0:if x == 0:y = xelse:y = x-1
B. y = x - 1if x! = 0:if x > 0:y = x + 1else:y = x
C. if x <= 0:if x < 0:y = x - 1else:y = xelse:y = x+1
D. y = xif x <= 0:if x < 0:y = x - 1else:y = x + 1
A. ls = [25, 13, 36, 1]ls.sort()print(ls)
B. ls = [25, 13, 36, 1]ls.sorted()print(ls)
C. ls = [25, 13, 36, 1]print(ls.sort())
D. ls = [25, 13, 36, 1]print(sorted(ls))
A. 对
B. 错
A. {2:'two', 3:'One', 1:'one'}
B. {2:'two', 3:'three', 1:'One'}
C. {2:'two', 3:'three', 1:'one', 1:'One'}
D. {2:'One', 3:'three', 1:'one'}
A. radius = float(input())area = 3.14 * radius ** 2print(round(area, 2))
B. radius = float(input())area = 3.14 * radius * radiusprint(round(area, 2))
C. radius = input()print(round(3.14 * radius ** 2, 2))
D. radius = float(input())print(round(3.14 * radius * radius, 2))
A. 对
B. 错
A. 两个数组
B. 三个数组
C. 一个数组
D. 四个数组
A. names. append('Helen', 'Mary')
B. names.remove(1)
C. names.index('Jack')
D. names[2]='Jack'