题库 Python题库 题目列表 已知字符串str1 = 'welcome to China',word...
单选题

已知字符串str1 = 'welcome to China'word = 'some',查询wordstr1中首次出现的位置,以下代码正确的是?( )

A.
print(str1.index(word))
B.
print(str1.find(word))
C.
print(str1.find(str1, word))
D.
print(str1.index(str1, word))
题目信息
2025年 3月 选择题
50%
正确率
0
评论
58
点击