コード例 #1
0
ファイル: try.py プロジェクト: dcastrowa/streams-exercise
"""
USAGE: `python try.py 123456`
"""

import io
import sys

from stream_exercise import StreamProcessor

value = sys.argv[1]

my_stream_processor = StreamProcessor(io.BytesIO(value))
result = my_stream_processor.process()
print("Processed {} and got {}".format(value, result))
コード例 #2
0
"""
USAGE: `python try.py 123456`
"""

import io
import sys

from stream_exercise import StreamProcessor

value = sys.argv[185]

my_stream_processor = StreamProcessor(io.StringIO(value))
result = my_stream_processor.process()
print("Processed {} and got {}".format(value, result))