APP下载
首页
>
财会金融
>
宏观经济学选择题
搜索
宏观经济学选择题
题目内容
(
多选题
)
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."

答案:A

宏观经济学选择题
16. (多选题)在确定序列长度的情况下,可以用多变量赋值语句把元组、列表和字符串等序列解包,将元素分别赋值给多个独立变量,下面语句正确的有:
https://www.shititong.cn/cha-kan/shiti/000dded1-b61d-d11a-c01a-2cf5d6189000.html
点击查看题目
113. (单选题)字符串的strip方法的作用是( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-9b3c-c01a-2cf5d6189000.html
点击查看题目
118. (单选题)在Python中有s=['a','b']s.append([1,2])s.insert(1,7);执行以上代码后,s值为( )
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-a3dc-c01a-2cf5d6189000.html
点击查看题目
141. (简答题)文件“静夜思.txt”保存在当前文件夹下,其文件的编码为“utf-8”,现在需要打开并读取文件内容,可以获得以下格式的输出的程序代码段:静夜思李白床前明月光,疑似地主霜。举头望明月,低头思故乡。
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-d03a-c01a-2cf5d6189000.html
点击查看题目
106. (单选题)以下代码的输出结果是( )for s in "testatest":if s=="a" or s=="e":continueprint(s,end='')
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-8cb3-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
点击查看题目
160. (判断题)元组的访问速度比列表要快一些,如果定义了一系列常量值,并且主要用途仅仅是对其进行遍历而不需要进行任何修改,建议使用元组而不使用列表。
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-f4dc-c01a-2cf5d6189000.html
点击查看题目
158. (判断题)元组是可变数据类型
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-f174-c01a-2cf5d6189000.html
点击查看题目
90. (单选题)以下Python注释代码,不正确的是()
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-6bcf-c01a-2cf5d6189000.html
点击查看题目
108. (单选题)当需要在字符串中使用特殊字符时,Python使用( )作为转义字符的起始符号
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-9056-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."

答案:A

分享
宏观经济学选择题
相关题目
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
点击查看答案
113. (单选题)字符串的strip方法的作用是( )

A.   删除字符串头尾指定的字符

B.   删除字符串末尾指定的字符

C.   删除字符串头部指定的字符

D.   通过指定分隔符对字符串切片

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-9b3c-c01a-2cf5d6189000.html
点击查看答案
118. (单选题)在Python中有s=['a','b']s.append([1,2])s.insert(1,7);执行以上代码后,s值为( )

A. [‘a', 7, ‘b', 1, 2]

B. [[1, 2], 7, ‘a',‘b’]

C. [1, 2,‘a’,7’,‘b’]

D. [‘a', 7, ‘b’,[1, 2]]

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-a3dc-c01a-2cf5d6189000.html
点击查看答案
141. (简答题)文件“静夜思.txt”保存在当前文件夹下,其文件的编码为“utf-8”,现在需要打开并读取文件内容,可以获得以下格式的输出的程序代码段:静夜思李白床前明月光,疑似地主霜。举头望明月,低头思故乡。
https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-d03a-c01a-2cf5d6189000.html
点击查看答案
106. (单选题)以下代码的输出结果是( )for s in "testatest":if s=="a" or s=="e":continueprint(s,end='')

A. tsttst

B. testatest

C. testtest

D. tstatst

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-8cb3-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
点击查看答案
160. (判断题)元组的访问速度比列表要快一些,如果定义了一系列常量值,并且主要用途仅仅是对其进行遍历而不需要进行任何修改,建议使用元组而不使用列表。

A.   对

B.   错

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-f4dc-c01a-2cf5d6189000.html
点击查看答案
158. (判断题)元组是可变数据类型

A.   对

B.   错

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-f174-c01a-2cf5d6189000.html
点击查看答案
90. (单选题)以下Python注释代码,不正确的是()

A. #Python注释代码

B. #Python注释代码1 #Python注释代码2

C. """Python文档注释"""

D. //Python 注释代码

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-6bcf-c01a-2cf5d6189000.html
点击查看答案
108. (单选题)当需要在字符串中使用特殊字符时,Python使用( )作为转义字符的起始符号

A.   \

B.   /

C.   #

D.   %

https://www.shititong.cn/cha-kan/shiti/000dded1-b61e-9056-c01a-2cf5d6189000.html
点击查看答案
试题通小程序
试题通app下载