112. (单选题)下列方法中,能够让所有单词的首字母变成大写的方法是( )
A. capitalize
B. title
C. upper
D. ljust
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-9923-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
点击查看答案
51. (单选题)对于字符串的标识,Python 中可使用的方法很多,下面正确的是( )
A. " What's happened to you?"
B. ' What's happened to you?'
C. ' What\\'s happened to you?'
D. "" Oh! " It sounds terrible."
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-1db2-c01a-2cf5d6189000.html
点击查看答案
33. (多选题)设置二行二列4个子图并在第3个区域绘制图形,以下语句正确的有:
A. plt.subplot(2, 2, 3)
B. plt.subplot(2, 2, 2)
C. plt.subplot(223)
D. plt.subplot(222)
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-f634-c01a-2cf5d6189000.html
点击查看答案
101. (单选题)假设从键盘输入的值是20,以下程序的输出结果是()
A. 已成年!
B. 未成年!
C. 程序运行错误
D. None
解析:答案解析:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-82fa-c01a-2cf5d6189000.html
点击查看答案
96. (单选题)表达式3*4**2//8%7的计算结果是()
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-7945-c01a-2cf5d6189000.html
点击查看答案
39. (单选题)num = 3.00001284print("{:.3f}".format(num))运行结果的输出为:
A. 3.0
B. 3.000
C. 3.00
D. 3.00001284
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-037f-c01a-2cf5d6189000.html
点击查看答案
97. (单选题)已知x=10,y=20,z=30;以下语句执行后x,y,z的值是()。if x < y:z=xx=yy=z
A. 10,20,30
B. 10,20,20
C. 20,10,10
D. 20,10,30
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-7b0f-c01a-2cf5d6189000.html
点击查看答案
64. (单选题)pandas中哪个函数不能实现数据的合并()
A. agg()
B. concat()
C. join()
D. merge()
解析:答案解析:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-374a-c01a-2cf5d6189000.html
点击查看答案
141. (简答题)文件“静夜思.txt”保存在当前文件夹下,其文件的编码为“utf-8”,现在需要打开并读取文件内容,可以获得以下格式的输出的程序代码段:静夜思李白床前明月光,疑似地主霜。举头望明月,低头思故乡。
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-d03a-c01a-2cf5d6189000.html
点击查看答案