Python 的 ord(~)
方法返回所提供的输入字符串的 Unicode 代码点。
参数
1. c
| string
要返回其 Unicode 代码点的字符。
返回值
与输入字符串对应的 Unicode 代码点。
例子
基本用法
返回字符串 'Y'
的 Unicode 代码点:
ord('Y')
89
相关用法
- Python ord()用法及代码示例
- Python NumPy ones方法用法及代码示例
- Python os.path.normcase()用法及代码示例
- Python os.read()用法及代码示例
- Python os.DirEntry.inode()用法及代码示例
- Python os.closerange()用法及代码示例
- Python os.set_blocking()用法及代码示例
- Python os.pathconf()用法及代码示例
- Python os.chflags()用法及代码示例
- Python open()用法及代码示例
- Python operator.truth()用法及代码示例
- Python os.WCOREDUMP()用法及代码示例
- Python os.fork()用法及代码示例
- Python os.ctermid()用法及代码示例
- Python os.mkfifo()用法及代码示例
- Python os.tcsetpgrp()用法及代码示例
- Python os.path.commonpath()用法及代码示例
- Python os.path.splitdrive用法及代码示例
- Python os.mkdir()用法及代码示例
- Python os.close()用法及代码示例
- Python os.chroot()用法及代码示例
- Python os.ttyname()用法及代码示例
- Python os.path.splitext用法及代码示例
- Python os.setregid()用法及代码示例
- Python os.abort()用法及代码示例
注:本文由纯净天空筛选整理自Arthur Yanagisawa大神的英文原创作品 Python | ord method。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。