题目内容
(请给出正确答案)
[单选题]
已知字符串s='I am Tommy',则以下哪个字符串的方法能从s中提取所有单词()
A.index
B.insert
C.split
D.join
查看答案
如果结果不匹配,请 联系老师 获取答案
A.index
B.insert
C.split
D.join
已知字符串s='1234',则表达式 str(s.index('3')+s.count('34'))*len(s) 的值为()。
— Oh, _______________! But can’t you go another day?
A.that’s a problem
B.that’s a loss
C.that’s a pity
D.that’s a question
以下程序的输出结果为()。s="AB123def" for i in s: print(i,end='') #本次输出后不换行,后面的内容紧接着输出 if i.islower(): #字符串的islower方法用于判断字符串中的字母是否全为小写字母 print('yes') break else: print('no')
A.I am sorry
B.I beg your pardon
C.Excuse me
D.Hello, how do you do