题目内容

假设你有一个变量 "example",如何判断它的类型?

A. getType(example)
B. Type(example)
C. type(example)
D. example.type:

查看答案
更多问题

将字符串 "example" 中的字母 a 替换为字母 b,以下代码正确的是?

A. example.swap('b', 'a')
B. example.replace('a', 'b')
C. example.match('b', 'a')
D. example.replace('b', 'a')

Python 中,以下哪个代码是正确的列表?

A. sampleList = {1,2,3,4,5}
B. sampleList = (1,2,3,4,5)
C. sampleList = /1,2,3,4,5/
D. sampleList = [1,2,3,4,5]

Python 中,以下哪个代码是正确的元组?

A. sampleList = (1,2,3,4,5)
B. sampleList = {1,2,3,4,5}
C. sampleList = [1,2,3,4,5]
D. sampleList = /1,2,3,4,5/

Python 中,以下哪个变量的赋值是正确的?

A. var a = 2
B. int a = 2
C. a = 2
D. variable a = 2

答案查题题库