python--练习--for i in

2020-01-13 12:29:35 浏览数 (1)

#!/usr/bin/python3 total1=0 total2=0 for i in range(2,101): if i%2==0 : total1 =i

代码语言:javascript复制
else:
    total2 = -i

total=total1 total2

print(total)

0 人点赞