julia 1.10.10
Extracting useful information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411 33.3 Error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412 33.4 Exception give you an error: julia> pi π = 3.1415926535897... julia> pi = 3 ERROR: cannot assign a value to imported variable Base.pi from module Main julia> sqrt(100) 10.0 julia> sqrt = 4 ERROR: cannot assign julia> x, ___ = size([2 2; 1 1]) (2, 2) julia> y = ___ ERROR: syntax: all-underscore identifier used as rvalue julia> println(___) ERROR: syntax: all-underscore identifier used as rvalue The only0 码力 | 1692 页 | 6.34 MB | 3 月前3Julia 1.10.9
Extracting useful information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411 33.3 Error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412 33.4 Exception give you an error: julia> pi π = 3.1415926535897... julia> pi = 3 ERROR: cannot assign a value to imported variable Base.pi from module Main julia> sqrt(100) 10.0 julia> sqrt = 4 ERROR: cannot assign julia> x, ___ = size([2 2; 1 1]) (2, 2) julia> y = ___ ERROR: syntax: all-underscore identifier used as rvalue julia> println(___) ERROR: syntax: all-underscore identifier used as rvalue The only0 码力 | 1692 页 | 6.34 MB | 3 月前3Julia 1.11.4
Extracting useful information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438 34.3 Error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439 34.4 Exception give you an error: julia> pi π = 3.1415926535897... julia> pi = 3 ERROR: cannot assign a value to imported variable Base.pi from module Main julia> sqrt(100) 10.0 julia> sqrt = 4 ERROR: cannot assign 2; 1 1]) (2, 2) julia> y = ___ ERROR: syntax: all-underscore identifiers are write-only and their values cannot be used in expressions �→ julia> println(___) ERROR: syntax: all-underscore identifiers0 码力 | 2007 页 | 6.73 MB | 3 月前3Julia 1.11.5 Documentation
Extracting useful information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438 34.3 Error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439 34.4 Exception give you an error: julia> pi π = 3.1415926535897... julia> pi = 3 ERROR: cannot assign a value to imported variable Base.pi from module Main julia> sqrt(100) 10.0 julia> sqrt = 4 ERROR: cannot assign 2; 1 1]) (2, 2) julia> y = ___ ERROR: syntax: all-underscore identifiers are write-only and their values cannot be used in expressions �→ julia> println(___) ERROR: syntax: all-underscore identifiers0 码力 | 2007 页 | 6.73 MB | 3 月前3Julia 1.11.6 Release Notes
Extracting useful information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438 34.3 Error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439 34.4 Exception give you an error: julia> pi π = 3.1415926535897... julia> pi = 3 ERROR: cannot assign a value to imported variable Base.pi from module Main julia> sqrt(100) 10.0 julia> sqrt = 4 ERROR: cannot assign 2; 1 1]) (2, 2) julia> y = ___ ERROR: syntax: all-underscore identifiers are write-only and their values cannot be used in expressions �→ julia> println(___) ERROR: syntax: all-underscore identifiers0 码力 | 2007 页 | 6.73 MB | 3 月前3julia 1.13.0 DEV
Extracting useful information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448 34.3 Error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449 34.4 Exception you have explicitly imported, Julia will give you an error: julia> using Base: pi, sqrt julia> pi π = 3.1415926535897... julia> pi = 3 ERROR: cannot assign a value to imported variable Base.pi from from module Main julia> sqrt(100) 10.0 julia> sqrt = 4 ERROR: cannot assign a value to imported variable Base.sqrt from module MainCHAPTER 4. VARIABLES 12 Julia 1.12 Note that in versions prior to0 码力 | 2058 页 | 7.45 MB | 3 月前3Julia 1.12.0 RC1
Extracting useful information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449 34.3 Error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450 34.4 Exception you have explicitly imported, Julia will give you an error: julia> using Base: pi, sqrt julia> pi π = 3.1415926535897... julia> pi = 3 ERROR: cannot assign a value to imported variable Base.pi from from module Main julia> sqrt(100) 10.0 julia> sqrt = 4 ERROR: cannot assign a value to imported variable Base.sqrt from module MainCHAPTER 4. VARIABLES 12 Julia 1.12 Note that in versions prior to0 码力 | 2057 页 | 7.44 MB | 3 月前3Julia 1.12.0 Beta4
Extracting useful information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448 34.3 Error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449 34.4 Exception you have explicitly imported, Julia will give you an error: julia> using Base: pi, sqrt julia> pi π = 3.1415926535897... julia> pi = 3 ERROR: cannot assign a value to imported variable Base.pi from from module Main julia> sqrt(100) 10.0 julia> sqrt = 4 ERROR: cannot assign a value to imported variable Base.sqrt from module MainCHAPTER 4. VARIABLES 12 Julia 1.12 Note that in versions prior to0 码力 | 2057 页 | 7.44 MB | 3 月前3Julia 1.12.0 Beta3
Extracting useful information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448 34.3 Error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449 34.4 Exception you have explicitly imported, Julia will give you an error: julia> using Base: pi, sqrt julia> pi π = 3.1415926535897... julia> pi = 3 ERROR: cannot assign a value to imported variable Base.pi from from module Main julia> sqrt(100) 10.0 julia> sqrt = 4 ERROR: cannot assign a value to imported variable Base.sqrt from module MainCHAPTER 4. VARIABLES 12 Julia 1.12 Note that in versions prior to0 码力 | 2057 页 | 7.44 MB | 3 月前3julia 1.12.0 beta1
Extracting useful information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448 34.3 Error handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449 34.4 Exception you have explicitly imported, Julia will give you an error: julia> using Base: pi, sqrt julia> pi π = 3.1415926535897... julia> pi = 3 ERROR: cannot assign a value to imported variable Base.pi from from module Main julia> sqrt(100) 10.0 julia> sqrt = 4 ERROR: cannot assign a value to imported variable Base.sqrt from module MainCHAPTER 4. VARIABLES 12 Julia 1.12 Note that in versions prior to0 码力 | 2047 页 | 7.41 MB | 3 月前3
共 42 条
- 1
- 2
- 3
- 4
- 5