第1题:
假设已成功导入Python标准库string,那么表达式len(string.digits)的值为()。
第2题:
python中,p=‘hello world!’,则p[2:5]的值是()
第3题:
表达式1+2+"hello"+8的值为( )。
A.12hello8
B.3hello8
C.12hello
D.不能运算
第4题:
表达式’Hello world.I like Python.’.rfind(’python’)的值为()。
第5题:
python中,“hello”[:-1:]的值是()
第6题:
已知x=’hello world.’,那么表达式x.find(’x’)和x.rfind(’x’)的值都为()。
第7题:
表达式’Hello world’.swapcase().swapcase()的值为。
第8题:
A.true
B.false
C.1
D.0
E.hello
第9题:
表达式’Hello world’.lower()的值为()。
第10题:
表达式’hello world,hello wevery one’.replace(’hello’,’hi’)的值为()。