let abc_for_ascllNumber = UnicodeScalar("A").value
let ascllNumber_for_ABC_ = Character(UnicodeScalar(66))
print(abc_for_ascllNumber) //65
print(ascllNumber_for_ABC_) //B
let abc_for_ascllNumber = UnicodeScalar("A").value
let ascllNumber_for_ABC_ = Character(UnicodeScalar(66))
print(abc_for_ascllNumber) //65
print(ascllNumber_for_ABC_) //B
本文标题:iOS-swift5.0 ascall码值互转
本文链接:https://www.haomeiwen.com/subject/aejpwktx.html
网友评论