mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
6 lines
104 B
Python
6 lines
104 B
Python
|
sum = 0
|
||
|
with open("num.txt",'r') as f:
|
||
|
for line in f:
|
||
|
sum += int(line)
|
||
|
print(str(sum)[:10])
|