为什么 我写的不对,帮看下下哪里出了问题?
L = [i for i in range(1,11)] def jishu_oushu (c,d): a = 0 b = 0 for i in L : if i %2 ==0: a = a +i else: b = b+i return (a,b) print(jishu_oushu(c,d))
L = [i for i in range(1,11)] def jishu_oushu (c,d): a = 0 b = 0 for i in L : if i %2 ==0: a = a +i else: b = b+i return (a,b) print(jishu_oushu(c,d))
2022-05-02
举报