74. (单选题)以下选项中不符合 Python 语言变量命名规则的是( )
A. TempStr
B. 3ⱣⱤ1
C. ⱣⱤAl
D. l
解析:答案解析:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-4c03-c01a-2cf5d6189000.html
点击查看答案
145. (判断题)无论使用单引号或者双引号包含的字符串,全用print函数输出的结果都一样
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-d855-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
点击查看答案
22. (多选题)ls = [25, 13, 36, 1]ls为一个列表,删除其中元素13,输出列表[25, 36, 1]的正确的选项有:
A. ls = [25, 13, 36, 1]ls.remove(13)print(ls)
B. ls = [25, 13, 36, 1]ls.pop(1)print(ls)
C. ls = [25, 13, 36, 1]ls.clear(13)print(ls)
D. ls = [25, 13, 36, 1]ls=[ls[0]]+ls[2:]print(ls)
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-dea1-c01a-2cf5d6189000.html
点击查看答案
132. ( )输入一个整数,输出其绝对值。将程序写在下方:思考:正数的绝对值不变,负数的绝对值需要加负号变为正数。
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-bf18-c01a-2cf5d6189000.html
点击查看答案
165. (判断题)函数的名称可以随意命名
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-feaa-c01a-2cf5d6189000.html
点击查看答案
50. (单选题)以下( )不是Python 的特性。
A. 收费使用
B. 跨平台
C. 可拓展
D. 可嵌入
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-1b2a-c01a-2cf5d6189000.html
点击查看答案
45. (单选题)有一个字符串'10111100',则set('10111100')的结果为:
A. {'1', '0', '1', '1', '1', '1', '0', '0'}
B. {'0', '1'}
C. '10111100'
D. 10111100
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-1014-c01a-2cf5d6189000.html
点击查看答案
17. (多选题)列表是python中应用最广泛、最灵活的数据类型之一,关于列表元素,正确的描述有:
A. 列表元素可以全是整数
B. 列表元素可以是不同类型
C. 列表元素可以仍是列表
D. 列表元素可以增加删除
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-d371-c01a-2cf5d6189000.html
点击查看答案
177. (填空题)()语句是else语句和if语句的组合。
https://www.shititong.cn/cha-kan/shiti/000dded1-b61f-161a-c01a-2cf5d6189000.html
点击查看答案