📜  num = [7,8, 120, 25, 44, 20, 27] newnum = [] def remove_even(num): for i in num: if i%2 != 0: newnum.append(i) return newnum print( "get_unevens") test(remove_even(num), [7,25,27]) - Python 代码示例
📅  最后修改于: 2022-03-11 14:45:15.821000             🧑  作者: Mango
代码示例1
ocalhost:8888/notebooks/OneDrive/JSD/PYTHON%20BASIC/Python_Day2_SC.ipynb#While-loop