美文网首页
iOS-swift5.0 ascall码值互转

iOS-swift5.0 ascall码值互转

作者: 千年积木 | 来源:发表于2020-12-02 23:13 被阅读0次
     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