A、 对
B、 错
答案:A
A、 对
B、 错
答案:A
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. DataFrame对象
B. array对象
C. dtype对象
D. list对象
A. 对
B. 错
A. city = ['北京', '上海', '天津', '重庆']orderⱣⱤcity = enumerate(city, 1)print(orderⱣⱤcity)
B. city = ['北京', '上海', '天津', '重庆']orderⱣⱤcity = enumerate(city, 1)print(list(orderⱣⱤcity))
C. city = ['北京', '上海', '天津', '重庆']orderⱣⱤcity = zip(range(1, 5), city)print(orderⱣⱤcity)
D. city=['北京','上海','天津','重庆']orderⱣⱤcity=zip(range(1,5),city)print(list(orderⱣⱤcity))
A. scatter()
B. plot()
C. bar()
D. pie()
A. 10,20,30
B. 10,20,20
C. 20,10,10
D. 20,10,30
A. n=int(input())result=0foriinrange(n):ifi%2==1:result=result+iprint(result)
B. n = int(input())result = 0for i in range(1, n):if i % 2 == 1:result = result + iprint(result)
C. n = int(input())result = 0for i in range(n):result = result + iprint(result)
D. n = int(input())print(sum([i for i in range(n) if i % 2 == 1]))
A. 8 2
B. 8,2
C. 8 3 2
D. 8,3,2
解析:答案解析:
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'])
解析:答案解析: