output.py文件和test.py文件内容如下,且output.py和test.py位于同一文件夹中,那么运行test.py的输出结果是()。 #output.py defshow(): print(__name__) #test.py importoutput if__name__=='__main__': output.show()
A. output
B. __name__
C. test
D. __main__
查看答案
以下程序的输出结果是()。 deffunc(a,*b): foriteminb: a+=item returna m=0 print(func(m,1,1,2,3,5,7,12,21,33))
A. 33
B. 0
C. 7
D. 85
以下程序的输出结果是()。 ab=4 defmyab(ab,xy): ab=pow(ab,xy) print(ab,end="") myab(ab,2) print(ab)
A. 44
B. 1616
C. 416
D. 164
以下程序的输出结果是() defcalu(x=3,y=2,z=10): return(x**y*z) h=2 w=3 print(calu(h,w))
A. 90
B. 70
C. 60
D. 80
执行以下代码,运行错误的是()。 deffun(x,y=“Name”,z=“No”): pass
A. fun(1,2,3)
B. fun(1,3)
C. fun(1)
D. fun(1,2)