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)
A.str.startswith(substring)
B.str.beginswith(substring)
C.str.hasPrefix(substring)
D.startswith(str,substring)
A.if condition:pass else:pass
B.test condition then pass else pass
C.if condition:pass elseif:pass
D.condition ?pass :pass
A.lambda x:x +1
B.(x)=>x +1
C.function(x)x +1
D.def(x):x +1
最新試題
在Python中,以下哪些語句可以用于判斷一個數的屬性?()
以下哪些是Python中的文件操作?()
在面向對象編程中,哪些是類的公共屬性?()
以下哪些方法可以用于將字符串"HEllo"的所有字母轉換為小寫?()
在Python中,函數的調用必須傳遞參數。
在面向對象編程中,繼承是指一個類從另一個類獲取屬性和方法。
在Python中,字符串可以使用單引號或雙引號表示。
在Python中,字符串是可變的。
在面向對象編程中,哪些是類的私有屬性?()
在Python中,縮進的空格數是固定的。