Swift代码库之如何将String转换为unicode编码
var myString = ""
for scalar in myString.unicodeScalars {
print(String(scalar.value, radix: 16))
}
var myString = ""
for scalar in myString.unicodeScalars {
print(String(scalar.value, radix: 16))
}
本文标题:Swift代码库之如何将String转换为unicode编码
本文链接:https://www.haomeiwen.com/subject/wcjbdctx.html
网友评论