Python-ord函数

>>> odr(s)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'odr' is not defined
>>> ord(s)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: ord() expected a character, but string of length 5 found
>>> ord('1')
49
复制代码
全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务