APP下载
首页
>
财会金融
>
生物番茄病毒实验问题研究
搜索
生物番茄病毒实验问题研究
题目内容
(
单选题
)
(单选题)下面代码的输出结果是( )。s =[“seashell”,”gold”,”pink”,”brown”,”purple”,”tomato”]print(s[1:4:2])

A、 [‘gold’, ‘brown’]

B、 [‘gold’,’pink’,’brown’,’purple’,’tomato’]

C、 [‘gold’,’pink’,’brown’]

D、 [‘gold’, ‘pink’]

答案:A

解析:

生物番茄病毒实验问题研究
(单选题)关于Python语言的描述,错误的选项是( )。
https://www.shititong.cn/cha-kan/shiti/0005b360-2002-b764-c0f2-8b6872ff1700.html
点击查看题目
(单选题)以下代码的输出结果是( )。print('{:@>10.6}'.format('Fog'))
https://www.shititong.cn/cha-kan/shiti/0005b643-0f6c-e566-c0f2-8b6872ff1700.html
点击查看题目
(单选题)下面代码的输出结果是( )。for s in “abc”:for i in range(3):print (s, end="")if s==”c”:break
https://www.shititong.cn/cha-kan/shiti/00002478-6bea-14e2-c00c-0da1455aeb00.html
点击查看题目
(单选题)Python语言中用来表示代码块所属关系的语法是( )。
https://www.shititong.cn/cha-kan/shiti/0005b360-2002-98a6-c0f2-8b6872ff1700.html
点击查看题目
(单选题)以下代码的输出结果是( )。a= 10.99print(complex(a))
https://www.shititong.cn/cha-kan/shiti/0005b643-0f6d-11c5-c0f2-8b6872ff1700.html
点击查看题目
(单选题)Python的运算符中**的作用是( )。
https://www.shititong.cn/cha-kan/shiti/0005b643-0f6d-13b2-c0f2-8b6872ff1700.html
点击查看题目
(单选题)Python中定义类的关键字是( )。
https://www.shititong.cn/cha-kan/shiti/0005b360-2002-cf79-c0f2-8b6872ff1700.html
点击查看题目
(单选题)已知id(ls1) = 4404896968,以下程序的输出结果是( )。ls1 = [1,2,3,4,5]ls2 = ls1ls3 = ls1.copy()print(id(ls2),id(ls3))
https://www.shititong.cn/cha-kan/shiti/00002478-6be9-e539-c00c-0da1455aeb00.html
点击查看题目
(单选题) 以下语句执行后a、b、c的值是( )。

a= “watermelon”

b= “strawberry” c= “cherry” if a > b: c = a a = b b = c

https://www.shititong.cn/cha-kan/shiti/0005aef5-22cd-f423-c0f2-8b6872ff1700.html
点击查看题目
(单选题)下列关于Python的描述正确的是( )。
https://www.shititong.cn/cha-kan/shiti/0005b643-0f6c-f66e-c0f2-8b6872ff1700.html
点击查看题目
首页
>
财会金融
>
生物番茄病毒实验问题研究
题目内容
(
单选题
)
手机预览
生物番茄病毒实验问题研究

(单选题)下面代码的输出结果是( )。s =[“seashell”,”gold”,”pink”,”brown”,”purple”,”tomato”]print(s[1:4:2])

A、 [‘gold’, ‘brown’]

B、 [‘gold’,’pink’,’brown’,’purple’,’tomato’]

C、 [‘gold’,’pink’,’brown’]

D、 [‘gold’, ‘pink’]

答案:A

解析:

生物番茄病毒实验问题研究
相关题目
(单选题)关于Python语言的描述,错误的选项是( )。

A. Python是一种编译型语言,可在各类计算机上直接运行

B. Python支持中文等多语言字符

C. Python具有庞大的计算生态

D. Python通过缩进实现了强制可读

https://www.shititong.cn/cha-kan/shiti/0005b360-2002-b764-c0f2-8b6872ff1700.html
点击查看答案
(单选题)以下代码的输出结果是( )。print('{:@>10.6}'.format('Fog'))

A. @@@@Fog

B. @@@@@@@Fog

C. Fog@@@@@@@

D. Fog@@@@

https://www.shititong.cn/cha-kan/shiti/0005b643-0f6c-e566-c0f2-8b6872ff1700.html
点击查看答案
(单选题)下面代码的输出结果是( )。for s in “abc”:for i in range(3):print (s, end="")if s==”c”:break

A. aaabbbc

B. abbbccc

C. aaabccc

D. aaabbbccc

https://www.shititong.cn/cha-kan/shiti/00002478-6bea-14e2-c00c-0da1455aeb00.html
点击查看答案
(单选题)Python语言中用来表示代码块所属关系的语法是( )。

A. 花括号

B. 括号

C. 缩进

D. 冒号

https://www.shititong.cn/cha-kan/shiti/0005b360-2002-98a6-c0f2-8b6872ff1700.html
点击查看答案
(单选题)以下代码的输出结果是( )。a= 10.99print(complex(a))

A. 0.99

B. 10.99i+j

C. 10.99

D. (10.99+0j)

https://www.shititong.cn/cha-kan/shiti/0005b643-0f6d-11c5-c0f2-8b6872ff1700.html
点击查看答案
(单选题)Python的运算符中**的作用是( )。

A. 非法符号

B. 乘法运算

C. 操作数取平方

D. 幂运算

https://www.shititong.cn/cha-kan/shiti/0005b643-0f6d-13b2-c0f2-8b6872ff1700.html
点击查看答案
(单选题)Python中定义类的关键字是( )。

A. def

B. class

C. function

D. defun

https://www.shititong.cn/cha-kan/shiti/0005b360-2002-cf79-c0f2-8b6872ff1700.html
点击查看答案
(单选题)已知id(ls1) = 4404896968,以下程序的输出结果是( )。ls1 = [1,2,3,4,5]ls2 = ls1ls3 = ls1.copy()print(id(ls2),id(ls3))

A. 4404896968 4404896904

B. 4404896904 4404896904

C. 4404896904 4404896968

D. 4404896968 4404896968

https://www.shititong.cn/cha-kan/shiti/00002478-6be9-e539-c00c-0da1455aeb00.html
点击查看答案
(单选题) 以下语句执行后a、b、c的值是( )。

a= “watermelon”

b= “strawberry” c= “cherry” if a > b: c = a a = b b = c

A. watermelon strawberry cherry

B. watermelon cherry strawberry

C. strawberry watermelon watermelon

D. strawberry cherry watermelon

https://www.shititong.cn/cha-kan/shiti/0005aef5-22cd-f423-c0f2-8b6872ff1700.html
点击查看答案
(单选题)下列关于Python的描述正确的是( )。

A. Python的整数类型有长度限制,超过上限会产生溢出错误

B. Python语言中采用严格的“缩进”来表明程序格式,不可嵌套

C. Python中可以用八进制来表示整数

D. Python的浮点类型没有长度限制,只受限于内存的大小

https://www.shititong.cn/cha-kan/shiti/0005b643-0f6c-f66e-c0f2-8b6872ff1700.html
点击查看答案
试题通小程序
试题通app下载