Python语句序列: counter=1;num=0 def test_variable(): global counter for i in (1,2,3): counter += 1 num = 10 test_variable();print(counter,num) 的输出结果是______ 。
查看答案
Python语句序列:def f1(): "simple function" passprint(f1.__doc__)的输出结果是______ 。
Python语句序列: i=map(lambda x:x**2,(1,2,3)) for t in i: print(t,end=' ') 的输出结果是______ 。
Python语句序列: d=lambda p:p*2;t=lambda p:p*3 x=2;x=d(x);x=t(x);x=d(x);print(x) 的输出结果是______ 。
如果要为定义在函数外的全景变量赋值,可以使用______ 语句 ,表明变量是在外面定义的全局变量。