📜  在 Julia 中使用 replace() - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:37.541000             🧑  作者: Mango

代码示例1
# hello.jl
# --- Greeting ---
println("Hello!")
println("How are you?")
# --- Input ---
x = readline()
# --- Put the characters in the ' ' for use later ---
removechar = ['.', '!', '*', '(', ')',' ']
# --- Fixing ---
fixedX = replace(lowercase(x), removechar => "")
# --- Print Answer ---
println("I'm ", fixedX, " too!")