哪个选项是下面代码的执行结果?s="abcd1234"print(s.find("cd"))
举一反三
- s = "abcd1234",find()函数可以在字符串中搜索子串,s.find("cd")返回的结果是__________
- 哪个选项是下面代码的执行结果? s=‘PYTHON’ print("{0:3}".format(s))
- 哪个选项是下面代码的执行结果?s = 'PYTHON'print("{0:3}".format(s)) A: PYTHON B: PYTHON C: PYTH D: PYT
- 哪个选项是下面代码的执行结果? s=‘PYTHON’print("{0:3}".format(s)) A: PYTH B: PYT C: PYTHON D: PYTHON
- 哪个选项是下面代码的执行结果?s=‘PYTHON’ print("{0:3}".format(s)) A: PYTH B: PYT C: PYTHON D: PYTHON