【单选题】以下关于函数参数和返回值的描述,正确的是:
【单选题】下面代码的输出结果是 def change(a,b): a = 10 b += a a = 4 b = 5 change(a,b) print(a,b)
【单选题】关于return语句,以下选项中描述正确的是
【单选题】下面代码的输出结果是 def hello_world(): print('ST',end="*") def three_hellos(): for i in range(3): hello_world() three_hellos()
【单选题】关于以下程序输出的两个值的描述正确的是: da = [1,2,3] print(id(da)) def getda(st): fa = da.copy() print(id(fa)) getda(da)
【单选题】以下选项中,不是Python IDE的是
【单选题】下面代码的输出结果是 >>>f=lambda x,y:y+x >>>f(10,10)
【单选题】下面代码的输出结果是 def exchange(a,b): a,b = b,a return (a,b) x = 10 y = 20 x,y = exchange(x,y) print(x,y)
【单选题】下面代码的输出结果是: L = [1,2,3,4,5] s1 = ','.join(str(n) for n in L) print(s1)
【单选题】假设函数中不包括global保留字,对于改变参数值的方法,以下选项中错误的是
【单选题】下面代码的输出结果是 s =["seashell","gold","pink","brown","p