代码实例:
>>> chr(97) 'a' >>> chr(98) 'b' >>> ord('a') 97 >>> ord('b') 98
ps:呵呵,这个函数和php里面的用法是一样的哦
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did86918
代码实例:
>>> chr(97) 'a' >>> chr(98) 'b' >>> ord('a') 97 >>> ord('b') 98
ps:呵呵,这个函数和php里面的用法是一样的哦
上一篇: python函数-cmp(x,y)