相关考题
-
单项选择题
在Python中,如何获取字符串的子串?()
A.str[start:end]
B.str.sub(start,end)
C.str.slice(start,end)
D.str.substring(start,end) -
单项选择题
在Python中,如何使用三元运算符?()
A.x if condition else y
B.condition ?x :y
C.if condition then x else y
D.condition ->x,y -
单项选择题
在Python中,如何判断一个变量是否为None?()
A.var is None
B.var ==None
C.var.isNull()
D.A和B都对
