单项选择题
在Python中,哪个函数用于测量字符串长度?()
A.str.size()
B.length(str)
C.len(str)
D.str.length()
点击查看答案&解析
相关考题
-
单项选择题
在Python中,哪个模块用于科学计算?()
A.scipy
B.numpy
C.math
D.所有以上的选项 -
单项选择题
在Python中,如何将字符串转换成日期对象?()
A.datetime.strptime()
B.datetime.parse()
C.date.fromString()
D.parse(date) -
单项选择题
在Python中,如何创建一个装饰器?()
A.def decorator(func)
B.@decorator
C.with decorator
D.A和B都对
