APP下载
首页
>
财会金融
>
宏观经济学选择题
搜索
宏观经济学选择题
题目内容
(
判断题
)
147. (判断题)Python中单个字符也属于字符串类型

A、  对

B、  错

答案:A

宏观经济学选择题
37. (单选题)s.count(x) 的返回值是:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-ff62-c01a-2cf5d6189000.html
点击查看题目
97. (单选题)已知x=10,y=20,z=30;以下语句执行后x,y,z的值是()。if x < y:z=xx=yy=z
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-7b0f-c01a-2cf5d6189000.html
点击查看题目
84. (单选题)下列针对while的描述中,不正确的是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-6100-c01a-2cf5d6189000.html
点击查看题目
58. (单选题)若要获取两个集合A和B的并集,在Python 中应该使用( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-2b1e-c01a-2cf5d6189000.html
点击查看题目
119. (单选题)下列函数中,用于返回元组中元素最小值的是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-a5f3-c01a-2cf5d6189000.html
点击查看题目
127. (单选题)写出下面代码的运行结果。Plain Textdef Sum(a, b=3, c=5):print(a,b,c)Sum(a=8, c=2)
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-b37a-c01a-2cf5d6189000.html
点击查看题目
16. (多选题)在确定序列长度的情况下,可以用多变量赋值语句把元组、列表和字符串等序列解包,将元素分别赋值给多个独立变量,下面语句正确的有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-d11a-c01a-2cf5d6189000.html
点击查看题目
51. (单选题)对于字符串的标识,Python 中可使用的方法很多,下面正确的是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-1db2-c01a-2cf5d6189000.html
点击查看题目
11. (多选题)s = "Hello world!"下面程序语句和注释均正确的有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-c70d-c01a-2cf5d6189000.html
点击查看题目
22. (多选题)ls = [25, 13, 36, 1]ls为一个列表,删除其中元素13,输出列表[25, 36, 1]的正确的选项有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-dea1-c01a-2cf5d6189000.html
点击查看题目
首页
>
财会金融
>
宏观经济学选择题
题目内容
(
判断题
)
手机预览
宏观经济学选择题

147. (判断题)Python中单个字符也属于字符串类型

A、  对

B、  错

答案:A

分享
宏观经济学选择题
相关题目
37. (单选题)s.count(x) 的返回值是:

A.   字符串s中x的序号

B.   字符串s中x的数量

C.   字符串x中s的数量

D.   字符串x中s的序号

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-ff62-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
点击查看答案
84. (单选题)下列针对while的描述中,不正确的是( )

A. while可提高程序的复用性

B. while能够实现无限循环

C. while循环体里的语句可能会造成死循环

D. while循环必须提供循环次数

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-6100-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
点击查看答案
119. (单选题)下列函数中,用于返回元组中元素最小值的是( )

A. len

B. max

C. min

D. tuple

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-a5f3-c01a-2cf5d6189000.html
点击查看答案
127. (单选题)写出下面代码的运行结果。Plain Textdef Sum(a, b=3, c=5):print(a,b,c)Sum(a=8, c=2)

A.   8 2

B.   8,2

C.   8 3 2

D.   8,3,2

解析:答案解析:

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-b37a-c01a-2cf5d6189000.html
点击查看答案
16. (多选题)在确定序列长度的情况下,可以用多变量赋值语句把元组、列表和字符串等序列解包,将元素分别赋值给多个独立变量,下面语句正确的有:

A. x, y = 5, 10

B. x, y = (5, 10)

C. a, b, c = 'xyz'

D. x, y = [3, 6]

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-d11a-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
点击查看答案
11. (多选题)s = "Hello world!"下面程序语句和注释均正确的有:

A. print(s[3:5]) # 输出 lo

B. print(s[5:3]) # 输出空字符串

C. print(s[::-1]) # 输出!dlrow olleH

D. print(s[-1::-1]) # 输出!dlrow olleH

https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-c70d-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
点击查看答案
试题通小程序
试题通app下载