首页->二级Python
变量tstr=kip520,表达式eval(tstr[3:-1])的结果是()。
(A)52
(B)520
(C)p520
(D)p52
查看解析
参考答案
更多二级Python试题
- 1变量sstr=天使的翅膀带着我在尘世飞翔,执行下列选项,不能输出翅膀的是()。
- 2x=2.6,表达式round(x)的结果是()。
- 3以下代码的输出结果是()。Ls=[[1,2,3],[[4,5],6],[7,8]]Print(len(ls))
- 4设str1=python,语句print(str1.center(10,*))的执行结果是()。
- 5以下代码的输出结果是()。Ls=[]ForminAB:ForninCD:Ls.append(m+n)Print(ls)
- 6以下程序被调用后,能够正确执行的是()。Deff(x,y=1,z=2):Pass