146. (判断题)无论input函数接受的任何数据,都会以字符串的方式进行保存
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-da2c-c01a-2cf5d6189000.html
点击查看答案
58. (单选题)若要获取两个集合A和B的并集,在Python 中应该使用( )
A. B
B. A+B
C. A|B
D. A^B
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-2b1e-c01a-2cf5d6189000.html
点击查看答案
18. (多选题)以下列表操作方法中,属于原地操作,无返回值的为:
A. pop()
B. append()
C. remove()
D. clear()
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-d591-c01a-2cf5d6189000.html
点击查看答案
35. (单选题)表示整数num能被4整除的表达式为:
A. num * 4 == 0
B. num // 4 == 0
C. num / 4 == 0
D. num % 4 == 0
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-faa1-c01a-2cf5d6189000.html
点击查看答案
31. (多选题)从字典d = {'北京': 2030, '上海': 2200, '天津': 1985, '重庆': 3325}中删除元素'重庆': 3325,下面程序正确的有:
A. d = {'北京': 2030, '上海': 2200, '天津': 1985, '重庆': 3325}d.pop('重庆')print(d)
B. d = {'北京': 2030, '上海': 2200, '天津': 1985, '重庆': 3325}d.popitem('重庆')print(d)
C. d={'北京':2030,'上海':2200,'天津':1985,'重庆':3325}deld['重庆']print(d)
D. d = {'北京': 2030, '上海': 2200, '天津': 1985, '重庆': 3325}d.clear('重庆')print(d)
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-f1f2-c01a-2cf5d6189000.html
点击查看答案
89. (单选题)python语言属于( )
A. 机器语言
B. 汇编语言
C. 高级语言
D. 科学计算语言
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-69f3-c01a-2cf5d6189000.html
点击查看答案
44. (单选题)创建空的可变集合的方法是:
A. s = {}
B. s = set()
C. s = ()
D. s = dict()
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-0e02-c01a-2cf5d6189000.html
点击查看答案
129. (单选题)以下()函数可以在绘制图表时,设置x轴的名称
A. xlim()
B. xlabel()
C. xticks()
D. xtitle()
解析:答案解析:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-b88c-c01a-2cf5d6189000.html
点击查看答案
128. (单选题)Plain Textdef Sum(a, b=3, c=5):print(a,b,c)Sum(8)运行结果是:
A. 8
B. 8 3 5
C. 8,3,5
D. 0 3 5
解析:答案解析:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-b594-c01a-2cf5d6189000.html
点击查看答案
10. (多选题)"+" 可以用于将多个字符串拼接为一个,下面正确的有:
A. 'Hello'+"world"
B. "Hello"+'2021'
C. "Hello"+2021
D. "Hello"+str(2021)
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-c515-c01a-2cf5d6189000.html
点击查看答案