mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-20 06:32:08 +00:00
13 lines
323 B
Python
13 lines
323 B
Python
|
#!/usr/bin/python3
|
||
|
|
||
|
import sys
|
||
|
import re
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
for line in sys.stdin:
|
||
|
updated_line = line.replace('\n', '')
|
||
|
line_split = re.split(r'\t+', line)
|
||
|
sum = int(line_split[0]) + int(line_split[1])
|
||
|
print(updated_line + '\t' + str(sum), end='\n')
|
||
|
sys.stdout.flush()
|