单项选择题
在Python中,如何判断一个字符串是否全是字母?()
A.str.isalpha()
B.str.isletter()
C.str.onlyletters()
D.str.letters()
点击查看答案&解析
相关考题
-
单项选择题
在Python中,哪个关键字用于定义上下文管理器?()
A.with
B.context
C.manage
D.using -
单项选择题
在Python中,如何获取当前工作目录?()
A.os.pwd()
B.os.cwd()
C.os.getdir()
D.os.getcwd() -
单项选择题
在Python中,如何检查一个变量是否是数字?()
A.isinstance(var,(int,float))
B.type(var)in (int,float)
C.var.isnumeric()
D.A和B都对
