Use raw input to read int value

2019-06-19 20:02栏目:技术创新
TAG: 澳门葡

import sys, string
sum = 0
while 1:
    try:
        line = raw_input()                
    except EOFError:                      
        break
    else:
        sum = sum   string.atoi(line)     # int(line[:-1]) treats 042 as octal
print sum

版权声明:本文由新浦京娱乐站_新浦京娱乐场官网_新浦京娱乐发布于技术创新,转载请注明出处:Use raw input to read int value