num = input("请输入10个整数:").split() x=0 for i in num: int(num) if num<=0: continue else: x+=num print(x)