A.(x for x in range(10))
B.[x for x in range(10)]
C.generator(x for x in range(10))
D.yield(x for x in range(10))
您可能感興趣的試卷
你可能感興趣的試題
A.str.replace(char,’’)
B.str.remove(char)
C.str.delete(char)
D.del str[char]
A.len(list)
B.list.length()
C.list.size()
D.list.len()
A.class MyException(Exception):pass
B.create Exception(’MyException’)
C.exception MyException
D.new Exception(’MyException’)
A.re.match(pattern,string)
B.string.match(pattern)
C.pattern.match(string)
D.regex.match(string,pattern)
A.dict.get(key,default)
B.dict[key]or default
C.dict.getValue(key,default)
D.dict.fetch(key,default)
最新試題
在Python中,函數(shù)的參數(shù)可以有默認(rèn)值。
在Python中,字符串可以使用單引號或雙引號表示。
以下哪些是Python中的文件操作?()
在面向?qū)ο缶幊讨校橄箢愂且粋€可以實(shí)例化的類。
在Python中,以下哪些選項(xiàng)可以用于對列表lst =[3,1,4,1,5,9,2,6,5,3,5]進(jìn)行排序?()
以下哪些是Python中的常用數(shù)據(jù)類型?()
在Python中,函數(shù)的參數(shù)必須是位置參數(shù)。
面向?qū)ο缶幊讨?,哪些是類的屬性?(?/p>
在Python中,函數(shù)的調(diào)用必須傳遞參數(shù)。
面向?qū)ο缶幊讨校男┦穷惖乃接蟹椒??(?/p>