[0,1,2,3][1:3]返回的运算结果是
A. [0,1,2,3]
B. [1,2,3]
C. [1,2]
D. [0,1,2]
以下函数定义,哪一项调用会出错def fun(outputs):for item in outputs:print(item)
A. fun([1,2,3])
B. fun(“abcd”)
C. fun(3.4)
D. fun(1,2,3)
以下导入模块的方法中,错误的是
A. import mo
B. from mo import *
C. import mo as moo
D. import * from mo
用import math as mynath导入math模块,要使用其中的sqrt( )函数,正确的调用方式是
A. math.sqrt(3)
B. sqrt(3)
C. mymath.sqrt(3)
D. math.mymath.sqrt(3)