以下函数定义,哪一项调用会出错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)
列表x = [1, 2, 3, 4, 5, 6],则x[:]=____________________。