A、 对
B、 错
答案:B
A. "abc"
B. 100
C. abc
D. 979899
解析:答案解析:
A. Plain Text[4,5,6]
B. Plain Text[4,3,6]
C. Plain Text[4,5,3]
D. Plain Text都不对
解析:答案解析:
A. 元组是不可变数据类型,列表是可变数据类型
B. 元组可以为空,列表不能为空
C. 元组的界定符是圆括号,列表的界定符是方括号
D. 元组的内置方法只有count()和index(),列表的内置方法较多
A. frame.sortⱣⱤvalues(ascending=['age','height], by=[False,True])
B. frame.sortⱣⱤvalues(by=('age','height), ascending=(False,True))
C. frame.sortⱣⱤvalues(ascending=('age','height), by=(False,True))
D. frame.sortⱣⱤvalues(by=['age','height], ascending=[False,True])
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. readⱣⱤexcel()
B. readⱣⱤcsv()
C. readⱣⱤsql()
D. readⱣⱤjson()
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. x, y = 5, 10
B. x, y = (5, 10)
C. a, b, c = 'xyz'
D. x, y = [3, 6]
A. 对
B. 错