출력함수

print(x)
Write (to the default output stream) a canonical (un-decorated) text representation of a value if there is one, otherwise call show. The representation used by print includes minimal formatting and tries to avoid Julia-specific details.

println(x)
Print (using print()) x followed by a newline.

print_with_color(color::Symbol, [io, ]strings…)¶
Print strings in a color specified as a symbol, for example :red or :blue.

ex)

julia> print(“Hello world\n”)
Hello world

 

julia> println(“Hello world”)
Hello world

julia> print_with_color(:blue,”Hello world\n”)
Hello world

 

 

입력함수

readline(stream)
Read a single line of text, including a trailing newline character (if one is reached before the end of the input).

readuntil(stream, delim)
Read a string, up to and including the given delimiter byte.

Stream / STDIN, STDOUT, STDERR

ex)

julia> input = readline(STDIN)
HELLO WORLD
“HELLO WORLD\n”

julia> input1 = readuntil(STDIN,”\n”)
hello world
“hello world\n”

 

참조: http://docs.julialang.org/en/release-0.2/stdlib/base/