考题
Python2.x和Python3.x中input()函数的返回值都是字符串。此题为判断题(对,错)。
考题
Python3.x和Python2.x唯一的区别就是:print在Python2.x中是输出语句,而在Python3.x中是输出函数。此题为判断题(对,错)。
考题
运行以下Python中表达式后,X的值为是x=3==3,5A.3B.5C.(True,5)D.(False,5)
考题
Python 3中,2*5**2的值为()A.20B.30C.40D.50
考题
在python中,返回字典里面所有的值是()A、valuesB、itemsC、has_keyD、keys
考题
python中,’HELLO’*5的值是()A、"HELLOHELLOHELLOHELLOHELLO"B、""C、"HELLO"D、None
考题
python中,max([1,2,3,4])的返回值是()A、4B、3C、2D、1
考题
python中,sum(range(10))的值为()A、45B、50C、55D、65
考题
在Python中定义函数时不需要声明函数的返回值类型。
考题
在Python中,变量不直接存储值,而是存储值的引用,也就是值在内存中的地址。
考题
Python 3.x和Python 2.x唯一的区别就是:print在Python 2.x中是输出语句,而在Python 3.x中是输出函数。
考题
表达式’Hello world.I like Python.’.rfind(’python’)的值为()。
考题
python中,10//7的值是()A、0B、1C、2D、3
考题
python中,[i for i in range(10)ifi%2==0]的值是()A、[2,5,8]B、[1,4,7]C、[0,3,6]D、[0,2,4,6,8]
考题
在python中,能够表示为真的是()A、0B、1C、2D、3
考题
"python"+"!!"的值是()。A、"python"B、"!!"C、"python!!"D、""
考题
单选题python中,’HELLO’*5的值是()A
HELLOHELLOHELLOHELLOHELLOB
C
HELLOD
None
考题
单选题python中,max([1,2,3,4])的返回值是()A
4B
3C
2D
1
考题
判断题Python 3.x和Python 2.x唯一的区别就是:print在Python 2.x中是输出语句,而在Python 3.x中是输出函数。A
对B
错
考题
单选题python中,p=‘hello world!’,则p[2:5]的值是()A
llB
lloC
heD
hello
考题
单选题python中,’qbcqb’.replace(’q’,’yy’)的值为()A
yybcyybB
abcC
yyabD
abcyy
考题
单选题python中,[i for i in range(10)ifi%2==0]的值是()A
[2,5,8]B
[1,4,7]C
[0,3,6]D
[0,2,4,6,8]
考题
单选题python中,10//7的值是()A
0B
1C
2D
3
考题
填空题表达式’Hello world.I like Python.’.rfind(’python’)的值为()。
考题
单选题python中,表达式’abcab’.replace(’a’,’yy’)的值为()A
yybcyybB
abcC
yyabD
abcyy