`
myten
  • 浏览: 131970 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Julia之Map,List,String

阅读更多
#Map
map=Dict([("A", 1), ("B", 2)])
println(map["A"])
println(haskey(map,"C"))
#List
list=Array{Int64}(undef,6)
list[1]=34
println(list[1])
#or
list=[1,15,3,4,5]
println(list[2])
#str
tstr="hello,world"
v::Int64=Base.findlast("o",tstr)
println(lastindex(tstr))

 编程除了值类型的变量以外,常用的应该就是上边这些,julia提供的api实在是简单到家了。这一点我都不想啰嗦写这篇博客了,所以到此结束。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics