A.variable is None
B.variable ==None
C.variable ===None
D.A和B都對(duì)
您可能感興趣的試卷
你可能感興趣的試題
A.@decorator def func():pass
B.def func()decorator:pass
C.func =decorator(func)
D.A和C都對(duì)
A.def func():yield x
B.function*func(){yield x;}
C.generator func(){yield x;}
D.func =generator(x for x in range(10))
A.x if condition else y
B.condition ?x :y
C.if condition:x else:y
D.condition then x else y
A.os.path.exists(path)
B.file.exists(path)
C.path.exists(file)
D.os.exists(file)
A.str.endswith(substring)
B.endswith(str,substring)
C.str.hasSuffix(substring)
最新試題
在Python中,以下哪些選項(xiàng)可以用于將字符串s ="Hello,World!"轉(zhuǎn)換為全大寫(xiě)形式?()
在面向?qū)ο缶幊讨?,繼承是指一個(gè)類(lèi)從另一個(gè)類(lèi)獲取屬性和方法。
在Python中,函數(shù)的調(diào)用必須傳遞參數(shù)。
以下哪些是Python中的文件操作?()
面向?qū)ο缶幊讨械亩鄳B(tài)性是指不同對(duì)象可以有相同的方法,但實(shí)現(xiàn)不同。
以下哪些是Python中的常用數(shù)據(jù)類(lèi)型?()
使用三重引號(hào)可以表示多行字符串。
面向?qū)ο缶幊讨械姆庋b是將復(fù)雜的實(shí)現(xiàn)細(xì)節(jié)隱藏起來(lái)。
在Python中,以下哪一個(gè)選項(xiàng)是合法的實(shí)例方法定義?()
在Python中,以下哪些語(yǔ)句可以用于生成整數(shù)序列?()