题解 | #HTTP状态码#
小乐乐求和
http://www.nowcoder.com/practice/ce0b2eacd3d04647831358c2876e44ff
各位请帮忙看下为什么不通过
sum = 0
if a.isdigit() == True:
if int(a)>=1 or int(a)<= (10**9):
for i in range(1,int(a)+1):
sum+=i
print(sum)
else:
print("erro")
else:
print("erro")