Julia 中文文档上面的任何正则表达式代码可以在 Regex() 的单 字符串参数中使用。下面是一些例子: julia> using Dates julia> d = Date(1962,7,10) 1962-07-10 julia> regex_d = Regex("Day " * string(day(d))) r"Day 10" julia> match(regex_d, "It happened Array{Float32,1}: 1.0 2.0 julia> ceil.(UInt8, [1.2 3.4; 5.6 6.7]) 2×2 Array{UInt8,2}: 0x02 0x04 0x06 0x07 julia> string.(1:3, ". ", ["First", "Second", "Third"]) 3-element Array{String,1}: "1. First" "2 "8f986787-14fe-4607-ba5d-fbff2944afa9" [deps] Priv = "ba13f791-ae1d-465a-978b-69c3ad90f72b" Pub = "c07ecb7d-0dc9-4db7-8803-fadaaeaf08e1" 294 CHAPTER 29. 代码加载 如果将它表示为 Julia 字典,那么这个项目文件意味着以下 roots 映射:0 码力 | 1238 页 | 4.59 MB | 1 年前3
Julia v1.2.0 Documentationstring argument to Regex(). Here are some examples: julia> using Dates julia> d = Date(1962,7,10) 1962-07-10 julia> regex_d = Regex("Day " * string(day(d))) r"Day 10" julia> match(regex_d, "It happened on Array{Float32,1}: 1.0 2.0 julia> ceil.((UInt8,), [1.2 3.4; 5.6 6.7]) 2×2 Array{UInt8,2}: 0x02 0x04 0x06 0x07 julia> string.(1:3, ". ", ["First", "Second", "Third"]) 3-element Array{String,1}: "1. First" "2 "8f986787-14fe-4607-ba5d-fbff2944afa9" [deps] Priv = "ba13f791-ae1d-465a-978b-69c3ad90f72b" Pub = "c07ecb7d-0dc9-4db7-8803-fadaaeaf08e1" This project file implies the following roots map, if it was represented0 码力 | 1250 页 | 4.29 MB | 1 年前3
Julia 1.6.7 Documentation"?" for help, "]?" for Pkg help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 1.6.7 (2022-07-19) _/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release |__/ | julia> 1 + 2 3 julia> argument to Regex(). Here are some examples: julia> using Dates julia> d = Date(1962,7,10) 1962-07-10 julia> regex_d = Regex("Day " * string(day(d))) r"Day 10" julia> match(regex_d, "It happened Vector{Float32}: 1.0 2.0 julia> ceil.(UInt8, [1.2 3.4; 5.6 6.7]) 2×2 Matrix{UInt8}: 0x02 0x04 0x06 0x07 julia> string.(1:3, ". ", ["First", "Second", "Third"]) 3-element Vector{String}: "1. First" "20 码力 | 1324 页 | 4.54 MB | 1 年前3
Julia 1.6.2 Documentation"?" for help, "]?" for Pkg help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 1.6.2 (2021-07-14) _/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release |__/ | julia> 1 + 2 3 julia> argument to Regex(). Here are some examples: julia> using Dates julia> d = Date(1962,7,10) 1962-07-10 julia> regex_d = Regex("Day " * string(day(d))) r"Day 10" julia> match(regex_d, "It happened Vector{Float32}: 1.0 2.0 julia> ceil.(UInt8, [1.2 3.4; 5.6 6.7]) 2×2 Matrix{UInt8}: 0x02 0x04 0x06 0x07 julia> string.(1:3, ". ", ["First", "Second", "Third"]) 3-element Vector{String}: "1. First" "20 码力 | 1324 页 | 4.54 MB | 1 年前3
Julia v1.1.1 Documentationstring argument to Regex(). Here are some examples: julia> using Dates julia> d = Date(1962,7,10) 1962-07-10 julia> regex_d = Regex("Day " * string(day(d))) r"Day 10" julia> match(regex_d, "It happened on Array{Float32,1}: 1.0 2.0 julia> ceil.((UInt8,), [1.2 3.4; 5.6 6.7]) 2×2 Array{UInt8,2}: 0x02 0x04 0x06 0x07 julia> string.(1:3, ". ", ["First", "Second", "Third"]) 3-element Array{String,1}: "1. First" "2 "8f986787-14fe-4607-ba5d-fbff2944afa9" [deps] Priv = "ba13f791-ae1d-465a-978b-69c3ad90f72b" Pub = "c07ecb7d-0dc9-4db7-8803-fadaaeaf08e1" This project file implies the following roots map, if it was represented0 码力 | 1216 页 | 4.21 MB | 1 年前3
Julia 1.1.0 Documentationstring argument to Regex(). Here are some examples: julia> using Dates julia> d = Date(1962,7,10) 1962-07-10 julia> regex_d = Regex("Day " * string(day(d))) r"Day 10" julia> match(regex_d, "It happened on Array{Float32,1}: 1.0 2.0 julia> ceil.((UInt8,), [1.2 3.4; 5.6 6.7]) 2×2 Array{UInt8,2}: 0x02 0x04 0x06 0x07 julia> string.(1:3, ". ", ["First", "Second", "Third"]) 3-element Array{String,1}: "1. First" "2 "8f986787-14fe-4607-ba5d-fbff2944afa9" [deps] Priv = "ba13f791-ae1d-465a-978b-69c3ad90f72b" Pub = "c07ecb7d-0dc9-4db7-8803-fadaaeaf08e1" This project file implies the following roots map, if it was represented0 码力 | 1214 页 | 4.21 MB | 1 年前3
Julia v1.6.6 Documentationargument to Regex(). Here are some examples: julia> using Dates julia> d = Date(1962,7,10) 1962-07-10 julia> regex_d = Regex("Day " * string(day(d))) r"Day 10" julia> match(regex_d, "It happened Vector{Float32}: 1.0 2.0 julia> ceil.(UInt8, [1.2 3.4; 5.6 6.7]) 2×2 Matrix{UInt8}: 0x02 0x04 0x06 0x07 julia> string.(1:3, ". ", ["First", "Second", "Third"]) 3-element Vector{String}: "1. First" "2 "8f986787-14fe-4607-ba5d-fbff2944afa9" [deps] Priv = "ba13f791-ae1d-465a-978b-69c3ad90f72b" Pub = "c07ecb7d-0dc9-4db7-8803-fadaaeaf08e1" This project file implies the following roots map, if it was represented0 码力 | 1324 页 | 4.54 MB | 1 年前3
Julia 1.9.0 rc1 Documentationfor help, "]?" for Pkg help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 1.9.0-rc1 (2023-03-07) _/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release |__/ | julia> 1 + 2 3 julia> ans argument to Regex(). Here are some examples: julia> using Dates julia> d = Date(1962,7,10) 1962-07-10 julia> regex_d = Regex("Day " * string(day(d))) r"Day 10" julia> match(regex_d, "It happened Vector{Float32}: 1.0 2.0 julia> ceil.(UInt8, [1.2 3.4; 5.6 6.7]) 2×2 Matrix{UInt8}: 0x02 0x04 0x06 0x07 julia> string.(1:3, ". ", ["First", "Second", "Third"]) 3-element Vector{String}: "1. First" "20 码力 | 1644 页 | 5.27 MB | 1 年前3
Julia 1.6.5 Documentationargument to Regex(). Here are some examples: julia> using Dates julia> d = Date(1962,7,10) 1962-07-10 julia> regex_d = Regex("Day " * string(day(d))) r"Day 10" julia> match(regex_d, "It happened Vector{Float32}: 1.0 2.0 julia> ceil.(UInt8, [1.2 3.4; 5.6 6.7]) 2×2 Matrix{UInt8}: 0x02 0x04 0x06 0x07 julia> string.(1:3, ". ", ["First", "Second", "Third"]) 3-element Vector{String}: "1. First" "2 "8f986787-14fe-4607-ba5d-fbff2944afa9" [deps] Priv = "ba13f791-ae1d-465a-978b-69c3ad90f72b" Pub = "c07ecb7d-0dc9-4db7-8803-fadaaeaf08e1" This project file implies the following roots map, if it was represented0 码力 | 1325 页 | 4.54 MB | 1 年前3
Julia 1.6.1 Documentationargument to Regex(). Here are some examples: julia> using Dates julia> d = Date(1962,7,10) 1962-07-10 julia> regex_d = Regex("Day " * string(day(d))) r"Day 10" julia> match(regex_d, "It happened Vector{Float32}: 1.0 2.0 julia> ceil.(UInt8, [1.2 3.4; 5.6 6.7]) 2×2 Matrix{UInt8}: 0x02 0x04 0x06 0x07 julia> string.(1:3, ". ", ["First", "Second", "Third"]) 3-element Vector{String}: "1. First" "2 "8f986787-14fe-4607-ba5d-fbff2944afa9" [deps] Priv = "ba13f791-ae1d-465a-978b-69c3ad90f72b" Pub = "c07ecb7d-0dc9-4db7-8803-fadaaeaf08e1" This project file implies the following roots map, if it was represented0 码力 | 1397 页 | 4.59 MB | 1 年前3
共 87 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













