`
standalone
  • 浏览: 595924 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

How can I convert a character to a integer in Python, and viceversa?

阅读更多
Use chr() and ord():

>>> chr(97)
'a'
>>> ord('a')
97
分享到:
评论

相关推荐

    VS2010 UML2Code

    It is a code to UML generator from JAVA and Python and viceversa (ie. UML to code generator). And the features?¶ UML2Code has this features: •Extensible •Easy of use •No more time consuming ...

    matlab开发-从Matlabton到Astransciiformat和Viceversa的三角测量交换

    matlab开发-从Matlabton到Astransciiformat和Viceversa的三角测量交换。支持nastran(ascii)三角网格导出/导入的四个压缩matlab脚本

    viceversa_project

    viceversa_project

    viceversa-project

    viceversa-project

    linux.chm文档

    batch resize files in the current directory and send them to a thumbnails directory (requires convert from Imagemagick) 文件搜索 find / -name file1 从 '/' 开始进入根文件系统搜索文件和目录 find ...

    loopstudios-frontendmentor:Web hecha con html,sass和javascript JavaScript前端网页设计器

    Tuve issueas para cambiar la imagen del menu hambueguesa a la x de cerrar y Viceversa,lo solucione haciendo dos clases para cada una con distintos backgroun image。 阿萨尔·科萨斯·科约斯·阿约格的...

    matlab开发-xyz2vxp

    matlab开发-xyz2vxp。将file.vxp转换为file.xyz和viceversa。用于GIS应用。

    YAG-PDB.xyz-Custom-Commands

    爱神的自定义命令 介绍 你好! 欢迎来到我的Git-Hub Repo,在这里我可以上传一些我的Epik自定义命令,这些命令可以用于...::将文本转换为嵌入// ViceVersa! usage : -embed <@#CHANNEL> <MESSAGE-ID:Whole

    STED - Transliterator-开源

    任何语言文件之间的音译器-地图字体,创建编码方案,输入语音,印度语,罗马语,泰米尔语,印地语,英语,法语,德语,西班牙语或任何世界语言键盘。 例如:[语音输入]-[任何世界语言输出]或ViceVersa。

Global site tag (gtag.js) - Google Analytics