天天看点

julia语言 python解释器_刚在csdn上看到一个新语言julia,拥有py的简洁c的快速

julia> x = 3

这个看上去不错

Additionally, parenthesized expressions can be used as coefficients to variables, implying multiplication of the expression by the variable:

julia> (x-1)x

6

但是马上就给自己制造了麻烦,估计以后的用户也会被烦死

julia> (x-1)(x+1)

type error: apply: expected Function, got Int64

julia> x(x+1)

type error: apply: expected Function, got Int64

Both of these expressions are interpreted as function application

【 在 nyliubing (天若有情) 的大作中提到: 】

: 好牛啊,但没百度到什么资料