在 Python 中,我们有语法:
print(f"This is a number {1}")
在 Julia 中,是否有类似的语法或类似的方法来做到这一点?
字符串插值是在 Julia 中使用
$(...)
julia> x = 1; y = "world"; julia> str = "x is $(x) and y is $(y)" "x is 1 and y is world"