首页 > 职业资格考试
题目内容 (请给出正确答案)
[单选题]

已知字符串s='I am Tommy',则以下哪个字符串的方法能从s中提取所有单词()

A.index

B.insert

C.split

D.join

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“已知字符串s='I am Tommy',则以下哪个字符串的方…”相关的问题
第1题
已知字符串s='1a2b3c',则表达式'abc' in s的值为___________。
点击查看答案
第2题
已知字符串s='abc',则表达式s*2的值是()

A.'abcabc'

B.abcabc

C.'abc2'

D.'aabbcc'

点击查看答案
第3题
已知字符串s='agcosobdelgutcukq',则表达式s[1::2]的值为()

点击查看答案
第4题
已知字符串s='1234',则表达式 str(s.index('3')+s.count('34'))*len

已知字符串s='1234',则表达式 str(s.index('3')+s.count('34'))*len(s) 的值为()。

点击查看答案
第5题
已知字符串s='abcde',以下表达式中结果不为'e'的是()

A.s[4]

B.s[-1]

C.s[4:]

D.s[:-1]

点击查看答案
第6题
—I am afraid I cannot go shopping with you this afternoon. I have a lot of homework to
do.

— 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

点击查看答案
第7题
已知字符串s='马力在学校运动会400m的决赛中获得了第一名。',则表达式s[8]的值为()

点击查看答案
第8题
以下程序的输出结果为()。s="AB123def" for i in s: print(i,end='') #本次

以下程序的输出结果为()。s="AB123def" for i in s: print(i,end='') #本次输出后不换行,后面的内容紧接着输出 if i.islower(): #字符串的islower方法用于判断字符串中的字母是否全为小写字母 print('yes') break else: print('no')

点击查看答案
第9题
已知字符串s='0123456789',则以下表达式中值为'13579'的是()

A.s[0:-1]

B.s[0:-1:2]

C.s[1::2]

D.s[1:-1:2]

点击查看答案
第10题
Dale: (). Would you please tell me the time?Laura: It’s ten past nine.

A.I am sorry

B.I beg your pardon

C.Excuse me

D.Hello, how do you do

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改