Skip to content

lijie28/code-tips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

字符串转数组

swift

let str = "I am FlyElephant"
let array = str.components(separatedBy:" ")
print("字符串转数组:\(array)")

objective-c

// todo

python

# todo

go

// todo

kotlin

// todo

dart

// todo

数组转字符串:

swift

let data = [1, 2, 3, 4, 5]
let dataStr = data.map(String.init)
let result = dataStr.joined(separator: ",")
print("数组转字符串:\(result)")

objective-c

// todo

python

# todo

go

// todo

kotlin

// todo

dart

// todo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published