def f(s):t=""for x in s:t=x+treturn ts="xyz"print(f(s))结果是
A. xyz
B. zyx
C. zxy
D. yxz
def f():st["name"]="x"st={"name":"a","sex":"male"}f()print(st["name"],st["sex"])以上代码运行结果是
A. x male
B. a male
C. 错误
D. 没有错误,也没有输出
def f(st):i=0while i:if st[i]%2==0:del st[i]else:i+=1st=[1,2,3,4,5,6]st=f(st)print(st)结果是
A. [1,3,5]
B. None
C. [2,4,6]
D. [1,2,3,4,5,6]
def f(a,*args):print(a,args)f(1,2,3)结果是
A. 1 (2, 3)
B. 1 [2, 3]
C. 1 2 3
D. 错误